mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
c73923c519
commit
ef8e499821
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user