]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #11174
authorEnrico Forestieri <forenr@lyx.org>
Sat, 16 Jun 2018 18:55:38 +0000 (20:55 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 17 Jun 2018 21:37:39 +0000 (23:37 +0200)
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
status.23x

index 021b7f3b17e805d6e05e5e72d1ab9cf5c102f875..50fd544c4a7919854ccfda963779723142e2e7b0 100644 (file)
@@ -402,6 +402,10 @@ 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');
 }
 
 
index a581df3fd1effcd37a1a918bcae4250464c34a40..ad43472c77d27407bfe0158648beee2ad4cb7ec8 100644 (file)
@@ -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