]> git.lyx.org Git - lyx.git/commit
When breaking a paragraph, do not reset depth
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 26 Mar 2023 18:28:00 +0000 (20:28 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 16 Jul 2023 15:16:02 +0000 (17:16 +0200)
commit13d24c711e745ea0c6ea2019236025d14bd2defa
tree23614cfd7acf26308c9c751f8b398a8c5243e967
parentc4195defe61a73afbf67a9250abf9126c4432c11
When breaking a paragraph, do not reset depth

Remove some logic that would reset depth when editing non-environment
stuff (e.g. Standard layout) at non-zero depth. The current way of
decreasing depth is to use paragraph-break in an empty paragraph.

See discussion in ticket #2445 for why this code happened.

Fixes bug #12750.
src/Text.cpp