]> git.lyx.org Git - features.git/blobdiff - src/MetricsInfo.cpp
Remove unneeded code and comment.
[features.git] / src / MetricsInfo.cpp
index c2ed3cf094617e9e53578ca2c460990fab85bd7d..ff03e6214e8478cdcc604ad1b5b526218f442b5c 100644 (file)
@@ -163,7 +163,7 @@ FontSetChanger::FontSetChanger(MetricsBase & mb, char const * name)
        save_ = mb;
        FontSize oldsize = save_.font.size();
        mb.fontname = name;
-       mb.font = FontInfo();
+       mb.font = sane_font;
        augmentFont(mb.font, from_ascii(name));
        mb.font.setSize(oldsize);
 }
@@ -175,7 +175,7 @@ FontSetChanger::FontSetChanger(MetricsBase & mb, docstring const & name)
        save_ = mb;
        FontSize oldsize = save_.font.size();
        mb.fontname = to_utf8(name);
-       mb.font = FontInfo();
+       mb.font = sane_font;
        augmentFont(mb.font, name);
        mb.font.setSize(oldsize);
 }