]> git.lyx.org Git - features.git/commit
Fix computation of LABEL_MANUAL label separation
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 17 Jan 2022 10:58:49 +0000 (11:58 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 17 Jan 2022 16:35:12 +0000 (17:35 +0100)
commit4f158ecfc8e2ad174f8593c15d273534420f67a2
treeb846418d3f9d80a3d2c8d8b30df618b0f7c21c36
parentc638caddd84e281235cb9941940829d015a671aa
Fix computation of LABEL_MANUAL label separation

The spacing of Labeling, Description and friends shall be computed
when breaking the row, not when tokenizing it. Indeed, this is the
right place to determine its correct value.

To this end add a new MARGINSPACE row element type.

This allows to remove TextMetrics::labelEnd, which is not used anymore.
src/Row.cpp
src/Row.h
src/RowPainter.cpp
src/TextMetrics.cpp
src/TextMetrics.h