]> git.lyx.org Git - features.git/commit
Center correctly centered top labels (e.g. abstract)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 5 Jan 2021 13:53:15 +0000 (14:53 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 5 Jan 2021 13:53:15 +0000 (14:53 +0100)
commit6c1855313cef2fac19022ddc4c8eccaee66088e6
treeda695f17269cd036912f2aea4947dfc61df0b8b2
parentc6bc5f0ce080435672bbc7a9a8682fdfb8d06da4
Center correctly centered top labels (e.g. abstract)

Since the first row may be indented, it is necessary to find out what
the left margin would be on the next row (even if this next row does
not exst.

To this end, modify TextMetrics::leftMargin so that it does not test
whether position is after the last position of the paragraph.

Cosmetics: set the size of label to "small" for Abstract layout in
standard classes and reduce the spacing between label and text.

Fixes remainder of #11939.
lib/layouts/stdstruct.inc
src/RowPainter.cpp
src/TextMetrics.cpp