Commit 026c6c0f authored by Aleksei Kanash's avatar Aleksei Kanash

Fixed sankore crash on exit after clearing annotations.

parent 1f83f351
......@@ -628,6 +628,11 @@ bool UBGraphicsScene::inputDeviceRelease()
setDocumentUpdated();
if (mCurrentStroke && mCurrentStroke->polygons().empty()){
delete mCurrentStroke;
}
mCurrentStroke = NULL;
return accepted;
}
......
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