forked from qt-creator/qt-creator
Fixes: toggling Whitespace visualization while using block highlight
Correctly draw the block highlighting after toggling.
This commit is contained in:
@@ -3779,8 +3779,12 @@ void BaseTextEditor::setDisplaySettings(const DisplaySettings &ds)
|
|||||||
}
|
}
|
||||||
|
|
||||||
d->m_displaySettings = ds;
|
d->m_displaySettings = ds;
|
||||||
d->extraAreaHighlightCollapseBlockNumber = d->extraAreaHighlightCollapseColumn = -1;
|
if (!ds.m_highlightBlocks) {
|
||||||
d->m_highlightBlocksInfo = BaseTextEditorPrivateHighlightBlocks();
|
d->extraAreaHighlightCollapseBlockNumber = d->extraAreaHighlightCollapseColumn = -1;
|
||||||
|
d->m_highlightBlocksInfo = BaseTextEditorPrivateHighlightBlocks();
|
||||||
|
}
|
||||||
|
|
||||||
|
slotCursorPositionChanged();
|
||||||
viewport()->update();
|
viewport()->update();
|
||||||
extraArea()->update();
|
extraArea()->update();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user