mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix bug #11398
When deciding how to strike out deleted math in change-tracking mode, differentiate only on begin-of-line or not, and not on after-paragraph-break or not. The assumption that a new paragraph is always started after a float seems to be not true and was causing this bug.
This commit is contained in:
parent
42dda03689
commit
bd21aa99d2
@ -428,7 +428,7 @@ int Changes::latexMarkChange(otexstream & os, BufferParams const & bparams,
|
||||
// signature needed by \lyxsout to correctly strike out display math
|
||||
if (change.type == Change::DELETED && runparams.inDisplayMath
|
||||
&& !dvipost) {
|
||||
if (os.afterParbreak())
|
||||
if (os.lastChar() == '\n')
|
||||
str += from_ascii("\\\\\\noindent\n");
|
||||
else
|
||||
str += from_ascii("\\\\\\\\\n");
|
||||
|
@ -447,10 +447,6 @@ void InsetFloat::latex(otexstream & os, OutputParams const & runparams_in) const
|
||||
|
||||
// Force \end{<floatname>} to appear in a new line.
|
||||
os << breakln << "\\end{" << from_ascii(tmptype) << "}\n";
|
||||
|
||||
// A new paragraph is always started after a float. Hence, simulate a
|
||||
// blank line so that os.afterParbreak() returns true (see bug 11174).
|
||||
os.lastChar('\n');
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user