[subset] Minor
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 9 Jan 2019 07:20:23 +0000 (23:20 -0800)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 21 Jan 2019 01:12:12 +0000 (20:12 -0500)
src/hb-ot-layout-common.hh

index 8080385..672775b 100644 (file)
@@ -1249,9 +1249,9 @@ struct ClassDefFormat1
     hb_codepoint_t end   = start + classValue.len;
     for (hb_codepoint_t g = start; g < end; g++)
     {
+      if (!glyphset.has (g)) continue;
       unsigned int value = classValue[g - start];
       if (!value) continue;
-      if (!glyphset.has (g)) continue;
       glyphs.push()->set (glyph_map[g]);
       klasses.push()->set (value);
     }