Reset beginOfBody() when changing paragraph layout

This looks like a trivial thing to do, and it avoids some drawing problems.

Fixes bug #10163.
This commit is contained in:
Jean-Marc Lasgouttes 2016-07-21 01:56:22 +02:00
parent c73923c519
commit ef8e499821

View 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)) {