Commit 49dc9629 authored by mae's avatar mae
Browse files

Fix collapsed block indicator

In combination with ifdef'ed-out blocks, the collapse block
indicator was sometimes painted with the ifdef'ed out color.
parent 3c96e840
...@@ -2182,6 +2182,7 @@ void BaseTextEditor::paintEvent(QPaintEvent *e) ...@@ -2182,6 +2182,7 @@ void BaseTextEditor::paintEvent(QPaintEvent *e)
block = doc->findBlockByLineNumber(block.firstLineNumber()); block = doc->findBlockByLineNumber(block.firstLineNumber());
} }
} }
painter.setPen(context.palette.text().color());
if (backgroundVisible() && !block.isValid() && offset.y() <= er.bottom() if (backgroundVisible() && !block.isValid() && offset.y() <= er.bottom()
&& (centerOnScroll() || verticalScrollBar()->maximum() == verticalScrollBar()->minimum())) { && (centerOnScroll() || verticalScrollBar()->maximum() == verticalScrollBar()->minimum())) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment