]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_pimpl.C
fix crash when collapsing ert with cursor inside
[lyx.git] / src / paragraph_pimpl.C
index 13fd94dbdd82986e65dd4c0b78109d95085269ea..0606d440f030f4beb6169dffe9c2b170d59a544c 100644 (file)
@@ -503,9 +503,17 @@ void Paragraph::Pimpl::simpleTeXSpecialChars(Buffer const & buf,
                        break;
                }
 
+               // output change tracking marks only if desired,
+               // if dvipost is installed,
+               // and with dvi/ps (other formats don't work)
+               LaTeXFeatures features(buf, bparams, runparams.nice);
+               bool const output = bparams.output_changes
+                       && runparams.flavor == OutputParams::LATEX
+                       && features.isAvailable("dvipost");
+
                if (inset->isTextInset()) {
                        column += Changes::latexMarkChange(os, running_change,
-                               Change::UNCHANGED);
+                               Change::UNCHANGED, output);
                        running_change = Change::UNCHANGED;
                }