]> git.lyx.org Git - features.git/commit
Implement handling of row_flags for row breaking
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 17 Jul 2021 23:09:33 +0000 (01:09 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 23 Nov 2021 15:31:30 +0000 (16:31 +0100)
commit1bc07bd7d2fd60b5630a7536879604044d55053c
tree4d78399ca8aadcb641e91aa98a7f27d7fe58be40
parent4099d40683fbce8429a00b26168fb93285fde007
Implement handling of row_flags for row breaking

To this end, add the helper function needsRowBreak which computes the
effect of two consecutive row flags. This function implements the
priorities described in RowFlags.h.

This function is called with the relevant flags, or NoBreak* when at
boundaries and updates need_new_row.

Some common code is factored in a new cleanupRow() helper.
src/TextMetrics.cpp