]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gtk/xftFontLoader.C
the convert patch
[lyx.git] / src / frontends / gtk / xftFontLoader.C
index 098d3a2e34df6d7b3a2cd1694ff40e8144321945..3024b63dffa842bb7c977b411958de059ec150b2 100644 (file)
@@ -26,6 +26,7 @@
 #include "frontends/LyXView.h"
 #include "frontends/lyx_gui.h"
 
+#include "support/convert.h"
 #include "support/lstrings.h"
 #include "support/systemcall.h"
 #include "support/filetools.h"
@@ -33,8 +34,6 @@
 #include <cmath>       // fabs()
 #include <vector>
 
-using lyx::support::strToDbl;
-
 using std::endl;
 using std::string;
 
@@ -131,7 +130,7 @@ XftPattern * xftFontLoader::getFontPattern(LyXFont::FONT_FAMILY family,
        string ffamily;
        int fweight;
        int fslant;
-       double fsize = strToDbl(lyxrc.font_sizes[size]) * lyxrc.zoom / 100.0;
+       double fsize = convert<double>(lyxrc.font_sizes[size]) * lyxrc.zoom / 100.0;
        XftPattern *fpat = XftPatternCreate();
 
        ffamily = familyString(family);