]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNest.cpp
Get rid of Inset::setPosCache
[lyx.git] / src / mathed / InsetMathNest.cpp
index 07e881266f14feb66f79f4d94e3f99922ee43d05..ecd823063e092fc357c7b9a4075c16623852671f 100644 (file)
@@ -265,14 +265,13 @@ void InsetMathNest::dump() const
 }
 
 
-void InsetMathNest::draw(PainterInfo & pi, int x, int y) const
+void InsetMathNest::draw(PainterInfo &, int, int) const
 {
 #if 0
        if (lock_)
                pi.pain.fillRectangle(x, y - ascent(), width(), height(),
                                        Color_mathlockbg);
 #endif
-       setPosCache(pi, x, y);
 }
 
 
@@ -411,6 +410,14 @@ void InsetMathNest::latex(otexstream & os, OutputParams const & runparams) const
                         && (!LaTeXFeatures::isAvailable("dvipost")
                                || (runparams.flavor != OutputParams::LATEX
                                    && runparams.flavor != OutputParams::DVILUATEX)));
+       if (runparams.inulemcmd) {
+               wi.ulemCmd(WriteStream::UNDERLINE);
+               if (runparams.local_font) {
+                       FontInfo f = runparams.local_font->fontInfo();
+                       if (f.strikeout() == FONT_ON)
+                               wi.ulemCmd(WriteStream::STRIKEOUT);
+               }
+       }
        wi.canBreakLine(os.canBreakLine());
        Changer dummy = wi.changeRowEntry(TexRow::textEntry(runparams.lastid,
                                                            runparams.lastpos));