]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFontOld.cpp
Only set buffer if it is not null.
[lyx.git] / src / mathed / InsetMathFontOld.cpp
index cde388840cd9b755df53199b5575579e4dbfc708..383efaf30fe736bd47eab043c6a4b6079d33093d 100644 (file)
@@ -60,7 +60,7 @@ void InsetMathFontOld::metrics(MetricsInfo & mi, Dimension & dim) const
        bool really_change_font = fontname != "textcal";
 
        Changer dummy = really_change_font ? mi.base.changeFontSet(fontname)
-               : Changer();
+               : noChange();
        cell(0).metrics(mi, dim);
 }
 
@@ -77,7 +77,7 @@ void InsetMathFontOld::draw(PainterInfo & pi, int x, int y) const
        bool really_change_font = fontname != "textcal";
 
        Changer dummy = really_change_font ? pi.base.changeFontSet(fontname)
-               : Changer();
+               : noChange();
        cell(0).draw(pi, x, y);
 }