]> git.lyx.org Git - lyx.git/blobdiff - src/FontInfo.C
another pesky \#warning snuck in
[lyx.git] / src / FontInfo.C
index 406c8859027b721c1f36357dd5dd6693f7b6d5eb..a9117e6f946d7b7bb487afbfe4f9859392ea9224 100644 (file)
@@ -32,7 +32,7 @@ string const FontInfo::getFontname(int size)
                return string();
 
        int closestind = -1;
-       double error = 100000;
+       double error = 100000.0;
 
        for (int i = 0; i < matches; ++i) {
                if (sizes[i] == 0) {
@@ -128,7 +128,7 @@ void FontInfo::query()
                strings = new string[matches];
 
                // We have matches. Run them through
-               for(int i = 0; i < matches; ++i) {
+               for (int i = 0; i < matches; ++i) {
                        string name(list[i]);
                        sizes[i] = lyx::atoi(token(name, '-', 7));
                        strings[i] = name;