]> 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>
Thu, 18 Jun 2020 13:48:36 +0000 (15:48 +0200)
commit11759ef2d979475b5fe82d667140a693fe14ccc5
tree7de07e82f61ea42ca2ed563cea5d31fdbbbf9f70
parentd556f05a917b270f12af51750a8bebbd2677818a
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