Commit 25a8ee73 authored by David Schulz's avatar David Schulz

TextEditor: Do not use deleted TextMarks.

Task-number: QTCREATORBUG-13136
Change-Id: I12e7d16012bc6118cc5907dd805dedb41414aa52
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent 1f65111e
......@@ -603,8 +603,8 @@ void TextDocumentLayout::documentReloaded(TextMarks marks, TextDocument *baseTex
mark->updateBlock(block);
} else {
baseTextDocument->removeMarkFromMarksCache(mark);
mark->removedFromEditor();
mark->setBaseTextDocument(0);
mark->removedFromEditor();
}
}
requestUpdate();
......
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