mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix bug #8727: Text::breakParagraph() was always setting the default
layout, even if the paragraph in question requires plain layout.
This commit is contained in:
parent
b3a8abffc7
commit
f8f1232465
@ -735,8 +735,11 @@ void Text::breakParagraph(Cursor & cur, bool inverse_logic)
|
||||
if (cur.lastpos() == 0 && !cpar.allowEmpty()) {
|
||||
if (changeDepthAllowed(cur, DEC_DEPTH))
|
||||
changeDepth(cur, DEC_DEPTH);
|
||||
else
|
||||
setLayout(cur, tclass.defaultLayoutName());
|
||||
else {
|
||||
docstring const & lay = cur.paragraph().usePlainLayout()
|
||||
? tclass.plainLayoutName() : tclass.defaultLayoutName();
|
||||
setLayout(cur, lay);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user