Commit 8311e202 authored by jkobus's avatar jkobus Committed by Jarek Kobus
Browse files

Fix highlight artifacts in diff editor



Which appeared after pressing "..." mark and scrolling right.

Change-Id: I779d4a7e76ebb01857d7313b5099a5482c455136
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 6622aa91
......@@ -1413,7 +1413,10 @@ void DiffEditorWidget::synchronizeFoldings(DiffViewEditorWidget *source, DiffVie
sourceLayout->requestUpdate();
sourceLayout->emitDocumentSizeChanged();
}
source->updateFoldingHighlight(source->mapFromGlobal(QCursor::pos()));
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());
if (destinationLayout) {
......
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