From: Jean-Marc Lasgouttes Date: Wed, 20 Jul 2016 23:56:22 +0000 (+0200) Subject: Reset beginOfBody() when changing paragraph layout X-Git-Tag: 2.3.0alpha1~1228 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ef8e499821a789461b11df6994ec6b471d58dadb;p=features.git Reset beginOfBody() when changing paragraph layout This looks like a trivial thing to do, and it avoids some drawing problems. Fixes bug #10163. --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 8ea300ea75..12bc980346 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)) {