TextEditor: cleanup annotation rect cache after mark is removed

Change-Id: I8a0ab2df9d310da6025325ab3114eeadabfd4fb1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2017-10-06 14:29:13 +02:00
parent 5fb310828e
commit 26d0b536ca
3 changed files with 20 additions and 0 deletions

View File

@@ -959,6 +959,7 @@ void TextDocument::removeMark(TextMark *mark)
}
removeMarkFromMarksCache(mark);
emit markRemoved(mark);
mark->setBaseTextDocument(0);
updateLayout();
}