]> git.lyx.org Git - features.git/commit
Change FontMetrics::breakAt to return a position
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 10 Jul 2021 21:21:27 +0000 (23:21 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 7 Dec 2021 16:04:46 +0000 (17:04 +0100)
commit1831f6caaccb7d75e23459fca3b1f7fe9df07766
tree668b40971179fe423166a8c9c3193e3c61479d83
parentae56fb617184114329d1e5b9b5fbd6e2bc112231
Change FontMetrics::breakAt to return a position

Since we intend to break the row element in two, it is not good to
truncate the string too early.

Moreover, the row element width is now set at this point, even if no
breaking occurs.
src/Row.cpp
src/frontends/FontMetrics.h
src/frontends/qt/GuiFontMetrics.cpp
src/frontends/qt/GuiFontMetrics.h