Commit fb6bc855 authored by Craig Watson's avatar Craig Watson

Remove polygonItems from their Stroke when added to a StrokesGroup

parent b1c2d010
...@@ -114,6 +114,9 @@ UBGraphicsPolygonItem::~UBGraphicsPolygonItem() ...@@ -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;
} }
......
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