Fixed sankore crash on exit after clearing annotations.

preferencesAboutTextFull
Aleksei Kanash 12 years ago
parent 1f83f35176
commit 026c6c0fc4
  1. 5
      src/domain/UBGraphicsScene.cpp

@ -628,6 +628,11 @@ bool UBGraphicsScene::inputDeviceRelease()
setDocumentUpdated(); setDocumentUpdated();
if (mCurrentStroke && mCurrentStroke->polygons().empty()){
delete mCurrentStroke;
}
mCurrentStroke = NULL;
return accepted; return accepted;
} }

Loading…
Cancel
Save