]> git.lyx.org Git - lyx.git/commit
Fixup 294e4884: center correctly Abstract label when paragraph is empty
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 14:21:04 +0000 (15:21 +0100)
commit824d1c993a138d051c79149fc4b27e1c002736a4
treeff7e0e5bc386972919c1bb2d216147e69b04dd01
parentb8188e54dd6e24fa92c3844458ed41ad37b50fb8
Fixup 294e4884: center correctly Abstract label when paragraph is empty

When a paragraph is empty, it was not possible to query what the left
margin would be for an hypothetical second row.

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/TextMetrics.cpp
src/TextMetrics.h