]> git.lyx.org Git - features.git/commitdiff
Fix bug #11817.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Wed, 8 Apr 2020 20:40:39 +0000 (16:40 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Wed, 8 Apr 2020 21:28:10 +0000 (17:28 -0400)
Preserve line spacing when breaking a paragraph at the beginning.

(cherry picked from commit f7065fa22ece25f72107dfa9c78e21a250153514)

src/Text.cpp
status.23x

index 6e81268caeb6e11cf49def06aa6526a061cdfe43..c961a43e472be28d0774fc0c21b4e27b04f0f77e 100644 (file)
@@ -693,6 +693,7 @@ static void breakParagraph(Text & text, pit_type par_offset, pos_type pos,
 
                tmp->params().depth(par.params().depth());
                tmp->params().noindent(par.params().noindent());
+               tmp->params().spacing(par.params().spacing());
 
                // move everything behind the break position
                // to the new paragraph
index 22a4f6d72fe91c5655db7834de830a3322a253e8..f15bfef153ab377ea6ffa56cda176b6a84542564 100644 (file)
@@ -95,6 +95,9 @@ What's new
 - Disallow adding columns with gathered environment as this is not
   supported (bug 11812).
 
+- Preserve paragarph spacing when breaking a paragraph at the start
+  (bug 11817).
+
 
 * INTERNALS