]> git.lyx.org Git - features.git/commit
Fix bug #7641: Freeze when removing itemized first paragraph
authorunknown <vfr@lyx.org>
Mon, 14 May 2012 12:21:49 +0000 (14:21 +0200)
committerunknown <vfr@lyx.org>
Mon, 14 May 2012 12:24:53 +0000 (14:24 +0200)
commitb17250d7eb46cdc58c7288e177282c3ab4448dac
tree733d7918c9eea4539c7e6370bc0838f72040157e
parent93ebb7a863377f6dbcaf724972b747b5c3f20c24
Fix bug #7641: Freeze when removing itemized first paragraph

Text::outerFont looks recursively for paragraphs before the current one
which has a lower depth. If such a paragraph cannot be found, depthHook
and outerHook return the current paragraph. As such, we end up in an
infinite loop. So, if we find a par_depth that was the same as the
previous one, we apparently can't find a suitable paragraph and we should
quit the loop.
src/Text.cpp
src/Text.h