]> git.lyx.org Git - lyx.git/blobdiff - src/MetricsInfo.cpp
simplification
[lyx.git] / src / MetricsInfo.cpp
index c2ed3cf094617e9e53578ca2c460990fab85bd7d..17594c952acee819352b7832e6a0998fd80ded92 100644 (file)
@@ -38,17 +38,12 @@ MetricsBase::MetricsBase(BufferView * b, FontInfo const & f, int w)
 {}
 
 
-
-MetricsInfo::MetricsInfo()
-{}
-
-
-MetricsInfo::MetricsInfo(BufferView * bv, FontInfo const & font, int textwidth)
-       : base(bv, font, textwidth)
+MetricsInfo::MetricsInfo(BufferView * bv, FontInfo const & font, int textwidth, 
+       MacroContext const & mc)
+       : base(bv, font, textwidth), macrocontext(mc)
 {}
 
 
-
 PainterInfo::PainterInfo(BufferView * bv, lyx::frontend::Painter & painter)
        : pain(painter), ltr_pos(false), erased_(false), full_repaint(true),
        background_color(Color_background)
@@ -114,7 +109,6 @@ ArrayChanger::ArrayChanger(MetricsBase & mb)
 {}
 
 
-
 ShapeChanger::ShapeChanger(FontInfo & font, FontShape shape)
        : Changer<FontInfo, FontShape>(font)
 {
@@ -163,7 +157,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 +169,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);
 }