]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.cpp
pimpl not needed here
[lyx.git] / src / insets / InsetText.cpp
index 981eea01a92ac232199879724eae64d2821f6db8..cc33329a974fc8867ba3a6e9c267cc556a0d81f7 100644 (file)
@@ -173,7 +173,7 @@ void InsetText::metrics(MetricsInfo & mi, Dimension & dim) const
        //lyxerr << "InsetText::metrics: width: " << mi.base.textwidth << endl;
 
        // Hand font through to contained lyxtext:
-       tm.font_ = mi.base.font;
+       tm.font_.fontInfo() = mi.base.font;
        mi.base.textwidth -= 2 * TEXT_TO_INSET_OFFSET;
        if (hasFixedWidth())
                tm.metrics(mi, dim, mi.base.textwidth);
@@ -367,7 +367,7 @@ void InsetText::setDrawFrame(bool flag)
 
 ColorCode InsetText::frameColor() const
 {
-       return ColorCode(frame_color_);
+       return frame_color_;
 }