Fix collapsed block indicator

In combination with ifdef'ed-out blocks, the collapse block
indicator was sometimes painted with the ifdef'ed out color.
This commit is contained in:
mae
2009-10-05 18:49:03 +02:00
parent 3c96e840d8
commit 49dc962957

View File

@@ -2182,6 +2182,7 @@ void BaseTextEditor::paintEvent(QPaintEvent *e)
block = doc->findBlockByLineNumber(block.firstLineNumber());
}
}
painter.setPen(context.palette.text().color());
if (backgroundVisible() && !block.isValid() && offset.y() <= er.bottom()
&& (centerOnScroll() || verticalScrollBar()->maximum() == verticalScrollBar()->minimum())) {