]> git.eshelyaron.com Git - emacs.git/commitdiff
(line_draw_cost): Fix invalid glyph check.
authorKim F. Storm <storm@cua.dk>
Sat, 1 Mar 2008 20:57:46 +0000 (20:57 +0000)
committerKim F. Storm <storm@cua.dk>
Sat, 1 Mar 2008 20:57:46 +0000 (20:57 +0000)
src/dispnew.c

index 122f77c29621060f4ab0942da454a2e484088736..096bca9d4601e07df7a9521f1e020aed9520cdb6 100644 (file)
@@ -1472,7 +1472,7 @@ line_draw_cost (matrix, vpos)
 
          SET_GLYPH_FROM_CHAR_GLYPH (g, *beg);
 
-         if (GLYPH_INVALID_P (g) < 0
+         if (GLYPH_INVALID_P (g)
              || GLYPH_SIMPLE_P (glyph_table_base, glyph_table_len, g))
            len += 1;
          else