X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FChanges.cpp;h=63bb021efeced935b10f40282b3e6527f1e84656;hb=89d9334e03c311a4a7585f40ad81880304d174d4;hp=52e69da200b5a386700281efecb678c287b6ac19;hpb=dba1e40b520f67faeb49759b7cec9ec4f981f9a1;p=lyx.git diff --git a/src/Changes.cpp b/src/Changes.cpp index 52e69da200..63bb021efe 100644 --- a/src/Changes.cpp +++ b/src/Changes.cpp @@ -429,10 +429,6 @@ int Changes::latexMarkChange(otexstream & os, BufferParams const & bparams, int column = 0; - bool const dvipost = LaTeXFeatures::isAvailable("dvipost") && - (runparams.flavor == OutputParams::LATEX - || runparams.flavor == OutputParams::DVILUATEX); - if (oldChange.type != Change::UNCHANGED) { if (oldChange.type != Change::DELETED || runparams.ctObject != OutputParams::CT_OMITOBJECT) { // close \lyxadded or \lyxdeleted @@ -440,7 +436,7 @@ int Changes::latexMarkChange(otexstream & os, BufferParams const & bparams, column++; } if (oldChange.type == Change::DELETED - && !runparams.wasDisplayMath && !dvipost) + && !runparams.wasDisplayMath) --runparams.inulemcmd; } @@ -461,7 +457,7 @@ int Changes::latexMarkChange(otexstream & os, BufferParams const & bparams, macro_beg = from_ascii("\\lyxudisplayobjdeleted"); else { macro_beg = from_ascii("\\lyxdeleted"); - if (!runparams.inDisplayMath && !dvipost) + if (!runparams.inDisplayMath) ++runparams.inulemcmd; } } @@ -592,7 +588,7 @@ void Change::paintCue(PainterInfo & pi, double const x1, double const y1, return; case INSERTED: { if (!lyxrc.ct_additions_underlined) - break; + return; pi.pain.line(int(x1), int(y2) + 1, int(x2), int(y2) + 1, color(), Painter::line_solid, pi.base.solidLineThickness());