Commit 651ff4b1 authored by Marius Storm-Olsen's avatar Marius Storm-Olsen Committed by Thorbjørn Lindeijer
Browse files

Don't draw column margin twice

The last line is even blended, which slows things down.

Reviewed-by: Thorbjørn Lindeijer
(caused by wrong merge of ab3d3cf4)
parent b448e6e7
......@@ -2764,15 +2764,6 @@ void BaseTextEditor::paintEvent(QPaintEvent *e)
d->m_animator->draw(&painter, cursorRect(cursor).topLeft());
if (lineX > 0) {
const QColor bg = palette().base().color();
QColor col = (bg.value() > 128) ? Qt::black : Qt::white;
painter.setPen(QPen(col, 0));
painter.drawLine(QPointF(lineX, 0), QPointF(lineX, viewport()->height()));
if (d->m_overlay && d->m_overlay->isVisible())
d->m_overlay->paint(&painter, e->rect());
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