]> git.lyx.org Git - lyx.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>
Fri, 27 Jan 2017 15:09:03 +0000 (16:09 +0100)
commit8e7d0c2002bdc69c95f3a43f7c78d13fe47ce5f3
tree859216efcdbf16df5a7f54a433be70c7f7f5366d
parentef387c81af1294a3b5e7f65c23b313c371224b33
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.
src/Row.cpp
src/Row.h
src/TextMetrics.cpp