From 49c00213063aab470d23faf6a6fd31f191f7f318 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sat, 16 Jun 2018 20:55:38 +0200 Subject: [PATCH] Fix bug #11174 Apparently, a new paragraph is started after a float even if no blank line is actually present. So, account for this fact. (cherry picked from commit f6922b8c88d4d2e5bcf39264b8bac056470f49b8) --- src/insets/InsetFloat.cpp | 4 ++++ status.23x | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/insets/InsetFloat.cpp b/src/insets/InsetFloat.cpp index 021b7f3b17..50fd544c4a 100644 --- a/src/insets/InsetFloat.cpp +++ b/src/insets/InsetFloat.cpp @@ -402,6 +402,10 @@ 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'); } diff --git a/status.23x b/status.23x index a581df3fd1..ad43472c77 100644 --- a/status.23x +++ b/status.23x @@ -159,6 +159,8 @@ What's new - Fixed the last python scripts to support both python 2 and 3 (bug 11101). All scripts should now be able to run in a python 3 only environment. +- Correctly strike-out deleted math immediately following a float (bug 11174). + * LYX2LYX -- 2.39.5