mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-27 19:40:10 +00:00
Count the width of pilcrows indicating changed end-of-par
This is related to #10357. The case of real end-of-par markers is taken into account, but not "change" markers, which have been introduced in 2.4.
This commit is contained in:
parent
5920ddb567
commit
b0a74fa410
@ -493,8 +493,9 @@ bool TextMetrics::redoParagraph(pit_type const pit, bool const align_rows)
|
|||||||
// substracted to the available width. The logic here is
|
// substracted to the available width. The logic here is
|
||||||
// almost the same as in breakRow, remember keep them in sync.
|
// almost the same as in breakRow, remember keep them in sync.
|
||||||
int eop = 0;
|
int eop = 0;
|
||||||
if (lyxrc.paragraph_markers && e.pos + 1 == par.size()
|
if (e.pos + 1 == par.size()
|
||||||
&& size_type(pit + 1) < text_->paragraphs().size()) {
|
&& (lyxrc.paragraph_markers || par.lookupChange(par.size()).changed())
|
||||||
|
&& size_type(pit + 1) < text_->paragraphs().size()) {
|
||||||
Font f(text_->layoutFont(pit));
|
Font f(text_->layoutFont(pit));
|
||||||
// ¶ U+00B6 PILCROW SIGN
|
// ¶ U+00B6 PILCROW SIGN
|
||||||
eop = theFontMetrics(f).width(char_type(0x00B6));
|
eop = theFontMetrics(f).width(char_type(0x00B6));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user