]> 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 53824d55bc027b55ede099e8454c54aae123037f..350116735e1327a3ce14670cb39e1c1643955e93 100644 (file)
@@ -1,10 +1,12 @@
 /**
  * \file FontInfo.C
- * Copyright 1997-2002 the LyX Team
- * 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 <moz@compsoc.man.ac.uk>
+ * \author John Levon 
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
@@ -140,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);
        }