]> git.lyx.org Git - features.git/commit
Avoid row breaking at inconvenient places.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 20 Feb 2023 14:04:31 +0000 (15:04 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 3 Mar 2023 16:24:06 +0000 (17:24 +0100)
commitf7de345f85b4a34346fc52b60a9e754b466d24f0
treea7b5b1fa8dfb113bbcd2a7835d7784a5aff855e1
parentc90ea0388411ed2dc92b7851d0fe0a84056ac8aa
Avoid row breaking at inconvenient places.

The test that was used to avoid breaking a string that was followed
by a too long element was not correct (especially the part that
compared with total row width).

Typical example here is:
- a word with a part that has a font change like /un/breakable;
- a longish sentence after it.

Use a new test that is good enough for this particular case, although
with sortcomings. I do not want to overcomplicate and prefer to wait
for other complaints (this code is already more complicated that I
would like).

Document known shortcoming.

Fix ticket #12660.
src/Row.cpp