]> 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, 23 Nov 2021 15:31:29 +0000 (16:31 +0100)
commit740c7437506d1124b91aef7bcdd3dd313343d7a6
treeaf0bda943e3036a64ed7c0a4c26f8aa76a384906
parent2311f42f4183b968ed0166c4dae1b5f0df00439b
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