Fixes: toggling Whitespace visualization while using block highlight

Correctly draw the block highlighting after toggling.
This commit is contained in:
dt
2009-05-08 18:24:44 +02:00
parent dd1ae2a9c5
commit 64e6b49bef

View File

@@ -3779,8 +3779,12 @@ void BaseTextEditor::setDisplaySettings(const DisplaySettings &ds)
}
d->m_displaySettings = ds;
d->extraAreaHighlightCollapseBlockNumber = d->extraAreaHighlightCollapseColumn = -1;
d->m_highlightBlocksInfo = BaseTextEditorPrivateHighlightBlocks();
if (!ds.m_highlightBlocks) {
d->extraAreaHighlightCollapseBlockNumber = d->extraAreaHighlightCollapseColumn = -1;
d->m_highlightBlocksInfo = BaseTextEditorPrivateHighlightBlocks();
}
slotCursorPositionChanged();
viewport()->update();
extraArea()->update();
}