(compose_glyph_string): Check if category not Mnil.
authorhanda <handa>
Tue, 3 Mar 2009 07:27:29 +0000 (07:27 +0000)
committerhanda <handa>
Tue, 3 Mar 2009 07:27:29 +0000 (07:27 +0000)
src/draw.c

index 78a1a6c..332c1e0 100644 (file)
@@ -464,7 +464,7 @@ compose_glyph_string (MFrame *frame, MText *mt, int from, int to,
                {
                  MSymbol category = mchar_get_prop (g[-1].g.c, Mcategory);
 
-                 if (MSYMBOL_NAME (category)[0] != 'Z')
+                 if (category != Mnil && MSYMBOL_NAME (category)[0] != 'Z')
                    this_script = script;
                }
            }