X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFontInfo.C;h=a9117e6f946d7b7bb487afbfe4f9859392ea9224;hb=664eb7ff45dbb4fabc22ec0b56798031a82335b1;hp=406c8859027b721c1f36357dd5dd6693f7b6d5eb;hpb=e7401bd8f2310213b4b765c01676459f37adb530;p=lyx.git diff --git a/src/FontInfo.C b/src/FontInfo.C index 406c885902..a9117e6f94 100644 --- a/src/FontInfo.C +++ b/src/FontInfo.C @@ -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;