[unsafe-to-break] Mark during fraction-slash formation
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 31 Aug 2017 00:28:22 +0000 (17:28 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 31 Aug 2017 00:28:22 +0000 (17:28 -0700)
Fixes tests/automatic-fractions.tests

src/hb-ot-shape.cc

index bc53669..54c33a3 100644 (file)
@@ -394,6 +394,8 @@ hb_ot_shape_setup_masks_fraction (hb_ot_shape_context_t *c)
             HB_UNICODE_GENERAL_CATEGORY_DECIMAL_NUMBER)
         end++;
 
+      buffer->unsafe_to_break (start, end);
+
       for (unsigned int j = start; j < i; j++)
         info[j].mask |= pre_mask;
       info[i].mask |= c->plan->frac_mask;