Commit f1f96fd3 authored by Craig Watson's avatar Craig Watson

Fix for crash when erasing center cross of compass arc

Erasing part of (but not the entire) center cross of an arc drawn with
the compass caused a crash.
parent bf0d6fe1
......@@ -651,7 +651,9 @@ bool UBGraphicsScene::inputDeviceRelease()
mAddedItems.remove(item);
removeItem(item);
UBCoreGraphicsScene::removeItemFromDeletion(item);
mArcPolygonItem->setStrokesGroup(pStrokes);
UBGraphicsPolygonItem* pi = qgraphicsitem_cast<UBGraphicsPolygonItem*>(item);
if (pi)
pi->setStrokesGroup(pStrokes);
pStrokes->addToGroup(item);
}
......
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