(update_glyph_area): Don't use none_pixmap for
authorhanda <handa>
Fri, 23 Jun 2006 07:41:07 +0000 (07:41 +0000)
committerhanda <handa>
Fri, 23 Jun 2006 07:41:07 +0000 (07:41 +0000)
glyph index 0 if charmap_index is negative.

example/otfview.c

index 5a61b85..c528737 100644 (file)
@@ -211,7 +211,7 @@ update_glyph_area ()
 
       if (charmap_index >= 0)
        index = FT_Get_Char_Index (face, (FT_ULong) index);
-      if (! index)
+      if (charmap_index >= 0 && ! index)
        XtSetArg (arg[0], XtNbitmap, none_pixmap);
       else
        {