]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FontInfo.C
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FontInfo.C
index c616aebc40f27ed24e3095f2d5800eedd348c2d6..350116735e1327a3ce14670cb39e1c1643955e93 100644 (file)
@@ -1,6 +1,7 @@
 /**
  * \file FontInfo.C
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Asger Alstrup
  * \author John Levon 
@@ -141,7 +142,9 @@ void FontInfo::query()
                                        scaleindex = i;
                                }
                                scalable = true;
-                       };
+                       } else if (lyx::atoi(token(name, '-', 12)) == 0)
+                               // Ignore bogus matches of scalable fonts.
+                               sizes[i] = 0;
                };
                XFreeFontNames(list);
        }