(render_glyphs): Fix checking of g->code validity.
authorhanda <handa>
Tue, 20 Jul 2004 02:28:30 +0000 (02:28 +0000)
committerhanda <handa>
Tue, 20 Jul 2004 02:28:30 +0000 (02:28 +0000)
src/draw.c

index 6e5bb57..35b7a66 100644 (file)
@@ -1213,7 +1213,8 @@ render_glyphs (MFrame *frame, MDrawWindow win, int x, int y, int width,
          while (g != gend
                 && g->type == from_g->type
                 && g->rface == rface
-                && (g->code < 0) == (from_g->code < 0)
+                && ((g->code == MCHAR_INVALID_CODE)
+                    == (from_g->code == MCHAR_INVALID_CODE))
                 && g->enabled)
            width += g++->width;