]> git.lyx.org Git - features.git/commit
Do not break row at inset boundary if possible
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 22 Jul 2015 09:05:02 +0000 (11:05 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 22 Jul 2015 09:54:04 +0000 (11:54 +0200)
commit7d19265ba02aa0f7dcd14b34bb3f04add8584ad8
treee0a964e25dba240aa7bb337c870b696491801a49
parentbdc997726438fb63a671e5f2569e0f57d5ae0c1e
Do not break row at inset boundary if possible

The first change is to concentrate on the last ro elements that contain separators and try to break it a a width that is shorter than both
- its current width (we want to break it, after all)
- the amount of space available.

This simple heuristic seems to give good results.
src/Row.cpp