[LyX/2.3.x] Fix bug #11817.

Richard Kimberly Heck rikiheck at lyx.org
Wed Apr 8 21:07:33 UTC 2020


commit 12649348989e7ff50e5038f3dd2a532d41d13892
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Wed Apr 8 16:40:39 2020 -0400

    Fix bug #11817.
    
    Preserve line spacing when breaking a paragraph at the beginning.
    
    (cherry picked from commit f7065fa22ece25f72107dfa9c78e21a250153514)
---
 src/Text.cpp |    1 +
 status.23x   |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/Text.cpp b/src/Text.cpp
index 6e81268..c961a43 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -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
diff --git a/status.23x b/status.23x
index 22a4f6d..f15bfef 100644
--- a/status.23x
+++ b/status.23x
@@ -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
 


More information about the lyx-cvs mailing list