diff --git a/src/domain/UBGraphicsScene.cpp b/src/domain/UBGraphicsScene.cpp index c64815f2..147e2d70 100644 --- a/src/domain/UBGraphicsScene.cpp +++ b/src/domain/UBGraphicsScene.cpp @@ -651,7 +651,9 @@ bool UBGraphicsScene::inputDeviceRelease() mAddedItems.remove(item); removeItem(item); UBCoreGraphicsScene::removeItemFromDeletion(item); - mArcPolygonItem->setStrokesGroup(pStrokes); + UBGraphicsPolygonItem* pi = qgraphicsitem_cast(item); + if (pi) + pi->setStrokesGroup(pStrokes); pStrokes->addToGroup(item); }