mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix repaint of unselected branch
This works around a TextMetrics issue where Row::beg/end_margin_sel
are sometimes not reset correctly when there is no selection on the
row.
In master a fix for this problem has been done at 654cded1
. Here we
prefer a much simpler work around that fixes the symptom.
Fixes bug #10972.
This commit is contained in:
parent
6c6ce3bca3
commit
9bec4b8a0a
@ -77,7 +77,7 @@ FontInfo RowPainter::labelFont() const
|
||||
{
|
||||
FontInfo f = text_.labelFont(par_);
|
||||
// selected text?
|
||||
if (row_.begin_margin_sel || pi_.selected)
|
||||
if ((row_.selection() && row_.begin_margin_sel) || pi_.selected)
|
||||
f.setPaintColor(Color_selectiontext);
|
||||
return f;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user