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.
preferencesAboutTextFull
Craig Watson 7 years ago
parent bf0d6fe1e5
commit f1f96fd3ac
  1. 4
      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<UBGraphicsPolygonItem*>(item);
if (pi)
pi->setStrokesGroup(pStrokes);
pStrokes->addToGroup(item);
}

Loading…
Cancel
Save