projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5646dcb
)
[graphite] Remove assert
author
Behdad Esfahbod
<behdad@behdad.org>
Fri, 12 Oct 2018 00:15:00 +0000
(20:15 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Fri, 12 Oct 2018 00:15:00 +0000
(20:15 -0400)
src/hb-graphite2.cc
patch
|
blob
|
history
diff --git
a/src/hb-graphite2.cc
b/src/hb-graphite2.cc
index
7f3cbfd
..
e8d7c34
100644
(file)
--- a/
src/hb-graphite2.cc
+++ b/
src/hb-graphite2.cc
@@
-33,6
+33,8
@@
#include <graphite2/Segment.h>
+#include "hb-ot-tag.h"
+
HB_SHAPER_DATA_ENSURE_DEFINE(graphite2, face)
HB_SHAPER_DATA_ENSURE_DEFINE(graphite2, font)
@@
-284,10
+286,9
@@
_hb_graphite2_shape (hb_shape_plan_t *shape_plan,
&count,
script_tag,
nullptr, nullptr);
- assert (count);
seg = gr_make_seg (nullptr, grface,
-
script_tag[count - 1]
,
+
count ? script_tag[count - 1] : HB_OT_TAG_DEFAULT_SCRIPT
,
feats,
gr_utf32, chars, buffer->len,
2 | (hb_buffer_get_direction (buffer) == HB_DIRECTION_RTL ? 1 : 0));