diff --git a/src/Changes.cpp b/src/Changes.cpp index b4226582f4..5f8e3b21bf 100644 --- a/src/Changes.cpp +++ b/src/Changes.cpp @@ -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"); diff --git a/src/insets/InsetFloat.cpp b/src/insets/InsetFloat.cpp index c160daa4ab..9d92681dd2 100644 --- a/src/insets/InsetFloat.cpp +++ b/src/insets/InsetFloat.cpp @@ -447,10 +447,6 @@ void InsetFloat::latex(otexstream & os, OutputParams const & runparams_in) const // Force \end{} 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'); }