]> git.lyx.org Git - lyx.git/blobdiff - src/metricsinfo.C
* GuiView.C (updateTab): do not update early if current tab has
[lyx.git] / src / metricsinfo.C
index ccd72404c3b6714659992d7522244fc26a8040d5..9544e68883c464c85566db05bda984a00992a269 100644 (file)
@@ -163,6 +163,18 @@ FontSetChanger::FontSetChanger(MetricsBase & mb, char const * name)
        LyXFont::FONT_SIZE oldsize = save_.font.size();
        mb.fontname = name;
        mb.font = LyXFont();
+       augmentFont(mb.font, from_ascii(name));
+       mb.font.setSize(oldsize);
+}
+
+
+FontSetChanger::FontSetChanger(MetricsBase & mb, docstring const & name)
+       :       Changer<MetricsBase>(mb)
+{
+       save_ = mb;
+       LyXFont::FONT_SIZE oldsize = save_.font.size();
+       mb.fontname = to_utf8(name);
+       mb.font = LyXFont();
        augmentFont(mb.font, name);
        mb.font.setSize(oldsize);
 }