]> git.lyx.org Git - features.git/commit
Fix bug #8242: undo fails for longest label width
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 16 Jul 2012 21:39:24 +0000 (23:39 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 21 Aug 2012 10:08:27 +0000 (12:08 +0200)
commit3bf5d562b939050c31905111902a1b0a14ae3df5
tree9e660a3040a156cfc0e632bcd37f17a059373b25
parenta53f9aa8cc0446021bd97733f25e7e899b32a163
Fix bug #8242: undo fails for longest label width

In the existing code for setting layout of pragraph parameters,
Text::undoSpan is used to "guess" which paragraphs should be saved in Undo.
With this patch the approach is more precise: before every explicit change
to a paragraph, a Cursor::recordUndo call is inserted. This is much more robust than trying to guess.

In particular, we do not look at depth changes at all, since they are now
handled in updateBuffer since #8159 has been fixed.
src/Text.cpp
src/Text.h
src/Text2.cpp
status.20x