Remove polygonItems from their Stroke when added to a StrokesGroup

preferencesAboutTextFull
Craig Watson 9 years ago
parent b1c2d010c1
commit fb6bc855e9
  1. 3
      src/domain/UBGraphicsPolygonItem.cpp

@ -114,6 +114,9 @@ UBGraphicsPolygonItem::~UBGraphicsPolygonItem()
void UBGraphicsPolygonItem::setStrokesGroup(UBGraphicsStrokesGroup *group) void UBGraphicsPolygonItem::setStrokesGroup(UBGraphicsStrokesGroup *group)
{ {
if (mStroke)
mStroke->remove(this);
mpGroup = group; mpGroup = group;
} }

Loading…
Cancel
Save