]> git.lyx.org Git - features.git/commit
Fix flushing of row that was cut after an hyphen
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 27 Jan 2017 15:09:03 +0000 (16:09 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 6 Feb 2017 09:39:38 +0000 (10:39 +0100)
commit1438123a1316e06218b43ea7430a59ef747c506b
tree6243ba86e7c92ee6d8f7c7c1db673af565e2934b
parentb0673bd1fada03b93634c1f2fa7415e1f187f600
Fix flushing of row that was cut after an hyphen

When using Qt stuff in breakAt, it may happen that the row is broken
after an hyphen (whereas the old code would only consider spaces).

The fact that we abuse the Row::right_boundary() property to detect when
a row should be flushed broke justification when a row is cut at an
hyphen.

Fix this by introducing a new Row::flushed() property and set it as needed.
(cherry picked from commit 8e7d0c2002bdc69c95f3a43f7c78d13fe47ce5f3)
src/Row.cpp
src/Row.h
src/TextMetrics.cpp
status.22x