]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetert.C
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insetert.C
index b1698f5fb5055b9f772cf6c46aacbc43da197772..cb62a2579b4290e7b6236371c5609daa868d2191 100644 (file)
@@ -172,9 +172,9 @@ int InsetERT::latex(Buffer const &, odocstream & os,
 
 
 int InsetERT::plaintext(Buffer const &, odocstream &,
-                   OutputParams const & /*runparams*/) const
+                        OutputParams const &) const
 {
-       return 0;
+       return 0; // do not output TeX code
 }
 
 
@@ -397,14 +397,16 @@ bool InsetERT::insetAllowed(InsetBase::Code /* code */) const
 }
 
 
-void InsetERT::metrics(MetricsInfo & mi, Dimension & dim) const
+bool InsetERT::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        LyXFont tmpfont = mi.base.font;
        getDrawFont(mi.base.font);
        mi.base.font.realize(tmpfont);
        InsetCollapsable::metrics(mi, dim);
        mi.base.font = tmpfont;
+       bool const changed = dim_ != dim;
        dim_ = dim;
+       return changed;
 }