mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 10:40:48 +00:00
Do not set layout for no-op paragraph break
When breaking paragraph in an empty top-level paragraph, nothing
happens on screen but yet there is an undo step because the layout is
reset to what it already was.
Avoid this case.
Fixes bug #10089.
(cherry picked from commit 2ad52918da
)
This commit is contained in:
parent
1dc8278fef
commit
bbeb3773a1
@ -769,6 +769,7 @@ void Text::breakParagraph(Cursor & cur, bool inverse_logic)
|
||||
else {
|
||||
docstring const & lay = cur.paragraph().usePlainLayout()
|
||||
? tclass.plainLayoutName() : tclass.defaultLayoutName();
|
||||
if (lay != layout.name())
|
||||
setLayout(cur, lay);
|
||||
}
|
||||
return;
|
||||
|
@ -106,6 +106,8 @@ What's new
|
||||
|
||||
- Fix the minimum size of the citation dialog on first time (bug 10019).
|
||||
|
||||
- When Enter does nothing (empty paragraph), do not record undo (bug 10089).
|
||||
|
||||
|
||||
* INTERNALS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user