Commit c85435d9 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Fixes: Fix a painting glitch when not using code folding

parent ab42bb66
......@@ -2310,7 +2310,8 @@ void BaseTextEditor::extraAreaPaintEvent(QPaintEvent *e)
// if (documentLayout->doubleMarkCount)
// markWidth += fm.lineSpacing() / 3;
const int extraAreaWidth = d->m_extraArea->width() - collapseBoxWidth(fm);
const int collapseColumnWidth = d->m_codeFoldingVisible ? collapseBoxWidth(fm): 0;
const int extraAreaWidth = d->m_extraArea->width() - collapseColumnWidth;
painter.fillRect(e->rect(), pal.color(QPalette::Base));
painter.fillRect(e->rect().intersected(QRect(0, 0, extraAreaWidth, INT_MAX)),
......
Supports Markdown
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