]> 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, 23 Nov 2021 15:31:30 +0000 (16:31 +0100)
commit97addf2556e7def3e4d6a82e5990498de6419ab6
treeafbcabc661e8438cf7a02b6c8b9677045442416a
parent28559310feea29ceb836417116b2f66ce4fd8dee
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