commit ef8e499821a789461b11df6994ec6b471d58dadb
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Thu Jul 21 01:56:22 2016 +0200

    Reset beginOfBody() when changing paragraph layout
    
    This looks like a trivial thing to do, and it avoids some drawing problems.
    
    Fixes bug #10163.
---
 src/Paragraph.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 8ea300e..12bc980 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -2022,6 +2022,7 @@ docstring Paragraph::expandParagraphLabel(Layout const & 
layout,
 void Paragraph::applyLayout(Layout const & new_layout)
 {
        d->layout_ = &new_layout;
+       setBeginOfBody();
        LyXAlignment const oldAlign = d->params_.align();
 
        if (!(oldAlign & d->layout_->alignpossible)) {

Reply via email to