]> git.lyx.org Git - features.git/commit
Get rid of need_new_row boolean in breakParagraph
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 1 Sep 2021 14:54:28 +0000 (16:54 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 7 Dec 2021 16:04:47 +0000 (17:04 +0100)
commit41206351852757e82eeb98b0a22b586f8dbdd544
treeb0c353f7526db1f6ced1f7782e662422035e9983
parentef6dfe18c2149c6b96a806badde9548d7fd9f912
Get rid of need_new_row boolean in breakParagraph

Instead of having breakParagraph decide when breaking a row is
necessary, let Row::shortenIfNeeded set the row_flag of the last
element to request a row break. This was already done in splitAt.

This is in preparation of splitAt splitting in more than two elements.
src/Row.cpp
src/TextMetrics.cpp