]> git.lyx.org Git - features.git/commitdiff
Remove unneeded slash
authorGeorg Baum <baum@lyx.org>
Mon, 19 May 2014 20:09:12 +0000 (22:09 +0200)
committerGeorg Baum <baum@lyx.org>
Mon, 19 May 2014 20:09:12 +0000 (22:09 +0200)
addPath() always adds a slash at the end, os got a double one before.
Qt and the OS are clever enough to understand that, but a single slash
looks more nice.

src/frontends/qt4/GuiFontLoader.cpp

index 3d0f2b0cf34b1a658f9a4269be8303fd5603a0e3..39a4b17a3c558d491df476c262be175b45ab7686 100644 (file)
@@ -209,7 +209,7 @@ FontLoader::FontLoader()
                toqstr(addPath(package().system_support().absFileName(), "fonts"));
 
        for (int i = 0 ; i < num_math_fonts; ++i) {
-               QString const font_file = fonts_dir + '/' + math_fonts[i] + ".ttf";
+               QString const font_file = fonts_dir + math_fonts[i] + ".ttf";
                int fontID = QFontDatabase::addApplicationFont(font_file);
 
                LYXERR(Debug::FONT, "Adding font " << font_file