]> git.lyx.org Git - features.git/commit
Another go at improving row shortening
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 22 Jul 2015 22:39:27 +0000 (00:39 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 22 Jul 2015 22:39:27 +0000 (00:39 +0200)
commitd893400f93ab44837e60ec61a362a45c316bf072
treefcfe7dbaab6584ccaf3fdfdc3af6e7b3efceac19
parent2b8ebe9f0d2e408af004e401596bf79d6ce0e76a
Another go at improving row shortening

Instead of remembering the last breakable element in the row, search
backward in the row and consider all string elements one by one until
a correct place to break is found.

This fixes the case where the row ends with a string, but there is no
space soon enough in the string to break it here. In this case, we
need to consider the previous row.
src/Row.cpp