summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-07-07 17:27:02 +0200
committerBehdad Esfahbod <behdad@behdad.org>2018-07-07 17:27:02 +0200
commit0a9f6a0c1f0e4750e2a9864392370a20c511e71e (patch)
tree4ef807eecb49ae0ce10a70b0503dcad41ed6ee16
parent9f65356b7b473b607bea0510709a4d7330be9c9a (diff)
downloadpango-0a9f6a0c1f0e4750e2a9864392370a20c511e71e.tar.gz
Make pango_bidi_type_for_unichar() not crash with new FriBidi
This function has not been updated for latest FriBidi. Should add new types and / or deprecate this function.
-rw-r--r--pango/pango-bidi-type.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/pango-bidi-type.c b/pango/pango-bidi-type.c
index 9e2d4a9f..68f59a97 100644
--- a/pango/pango-bidi-type.c
+++ b/pango/pango-bidi-type.c
@@ -96,7 +96,9 @@ pango_bidi_type_for_unichar (gunichar ch)
case FRIBIDI_TYPE_WS: return PANGO_BIDI_TYPE_WS;
case FRIBIDI_TYPE_ON: return PANGO_BIDI_TYPE_ON;
default:
- g_assert_not_reached ();
+ /* TODO
+ * This function has not been updated for latest FriBidi.
+ * Should add new types and / or deprecate this function. */
return PANGO_BIDI_TYPE_ON;
}
}