]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathXYArrow.cpp
RefChanger
[lyx.git] / src / mathed / InsetMathXYArrow.cpp
index 0cb525c15a0e28b69842dff8dea6d42ec604b850..19852e5de1a255d70f61100e6c16844c6f01b5b5 100644 (file)
@@ -22,7 +22,7 @@ namespace lyx {
 
 
 InsetMathXYArrow::InsetMathXYArrow()
-       : InsetMathNest(2)
+       : InsetMathNest(2), up_(false), target_(0)
 {}
 
 
@@ -82,8 +82,8 @@ MathData const & InsetMathXYArrow::sourceCell() const
 bool InsetMathXYArrow::metrics(MetricsInfo & mi) const
 {
        InsetMathNest::metrics(mi);
-       mi_   = mi;
-       FontSetChanger dummy(mi.base, "textrm");
+       mi_ = mi;
+       Changer dummy = mi.base.changeFontSet(mi.base, "textrm");
 #if 0
        target_ = mi.inset ? mi.inset->asXYMatrixInset() : 0;
 
@@ -105,7 +105,7 @@ bool InsetMathXYArrow::metrics(MetricsInfo & mi) const
 void InsetMathXYArrow::draw(PainterInfo & pi, int x, int y) const
 {
        metrics(mi_);
-       FontSetChanger dummy(pi.base, "textrm");
+       Changer dummy = pi.base.changeFontSet(pi.base, "textrm");
 
        if (editing()) {