]> git.lyx.org Git - features.git/commitdiff
Reset beginOfBody() when changing paragraph layout
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 20 Jul 2016 23:56:22 +0000 (01:56 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 20 Jul 2016 23:56:22 +0000 (01:56 +0200)
This looks like a trivial thing to do, and it avoids some drawing problems.

Fixes bug #10163.

src/Paragraph.cpp

index 8ea300ea756c40ea47ccf95926ee919c91af6d01..12bc98034690fd19d32ae12b775448f0453e7c32 100644 (file)
@@ -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)) {