]> git.lyx.org Git - features.git/commit
Avoid endless loop when the window is too narrow
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 2 Mar 2016 22:59:40 +0000 (23:59 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 3 Mar 2016 17:08:11 +0000 (18:08 +0100)
commit8009edd3d4f3deee5ed8721113bbf31abe9e0aa6
treec2cc53ae3a6b0302b810b49d8e493a89d02f1890
parent7d163d4e78e9878b42a36018862a25b211c1a41a
Avoid endless loop when the window is too narrow

 * breakRow: remove wrong condition that would silently eat the contents of the
   paragraph when the window is narrower than left margin

 * breakRow: make sure that there is at least one element in each row

 * breakAt: when force-breaking a row element, make sure it is not empty. Doing
   so may create empty rows and therefore a endless loop.

Fixes bugs #9962 and #10001.
src/TextMetrics.cpp
src/frontends/qt4/GuiFontMetrics.cpp