forked from qt-creator/qt-creator
Fix highlight artifacts in diff editor
Which appeared after pressing "..." mark and scrolling right. Change-Id: I779d4a7e76ebb01857d7313b5099a5482c455136 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -1413,6 +1413,9 @@ void DiffEditorWidget::synchronizeFoldings(DiffViewEditorWidget *source, DiffVie
|
||||
sourceLayout->requestUpdate();
|
||||
sourceLayout->emitDocumentSizeChanged();
|
||||
}
|
||||
|
||||
QWidget *ea = source->extraArea();
|
||||
if (ea->contentsRect().contains(ea->mapFromGlobal(QCursor::pos())))
|
||||
source->updateFoldingHighlight(source->mapFromGlobal(QCursor::pos()));
|
||||
|
||||
BaseTextDocumentLayout *destinationLayout = qobject_cast<BaseTextDocumentLayout *>(destination->document()->documentLayout());
|
||||
|
||||
Reference in New Issue
Block a user