]> git.lyx.org Git - features.git/commit
Add empty rows to grid insets when numbers are too wide
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 14 Jul 2019 19:04:45 +0000 (21:04 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 14 Jul 2019 21:27:44 +0000 (23:27 +0200)
commitee0bd36a867a1e9a596571c14cfc6c3a46dc492d
tree0957a4b822540e2e79d32efe9c6900e5c67920ef
parentdea245d5409fb47af7efb5248f1b43e15d6563d3
Add empty rows to grid insets when numbers are too wide

This is done to ensure that numbering never overlaps equations. The
result can be different according to the bufferview, which is why
RowInfo::offset is now a std:map.

Remaing issues (how bad are theese ?):

- the numbering is considered too large when it overlaps the inset
  rect, whereas one could consider the width if the current row
  instead.

- previews may need to be adapted similarly to fit the whole screen width
src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathGrid.h
src/mathed/InsetMathHull.cpp