Commit fed5521016227bf8cc4475f66450a9963568d162

Werner Lemberg 2021-08-09T19:27:34

* src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Minor fix.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/sfnt/ttcolr.c b/src/sfnt/ttcolr.c
index 2f3e884..6880712 100644
--- a/src/sfnt/ttcolr.c
+++ b/src/sfnt/ttcolr.c
@@ -863,7 +863,7 @@
 
         format = FT_NEXT_BYTE( p1 );
 
-        if ( format < 0 || format > 1 )
+        if ( format > 1 )
           return 0;
 
         /* `face->root.size->metrics.x_scale` and `y_scale` are factors   */