[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Sat Apr 9 06:48:08 UTC 2016


 src/hb-ot-layout-common-private.hh |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 851b0db36d1b724fc1e0db506445119c78186285
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Fri Apr 8 23:46:55 2016 -0700

    Minor.  We should never get to this branch, but fix it anyway.

diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh
index 6c7bac0..34fa1b7 100644
--- a/src/hb-ot-layout-common-private.hh
+++ b/src/hb-ot-layout-common-private.hh
@@ -770,7 +770,11 @@ struct CoverageFormat2
     TRACE_SERIALIZE (this);
     if (unlikely (!c->extend_min (*this))) return_trace (false);
 
-    if (unlikely (!num_glyphs)) return_trace (true);
+    if (unlikely (!num_glyphs))
+    {
+      rangeRecord.len.set (0);
+      return_trace (true);
+    }
 
     unsigned int num_ranges = 1;
     for (unsigned int i = 1; i < num_glyphs; i++)


More information about the HarfBuzz mailing list