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.
// 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");
// 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');
}