Commit 1ce5763a authored by Anatoly Mihalchenko's avatar Anatoly Mihalchenko

SANKORE-1063

parent 8f06cfd8
...@@ -1105,9 +1105,10 @@ void UBGraphicsScene::clearItems() ...@@ -1105,9 +1105,10 @@ void UBGraphicsScene::clearItems()
if (!item->parentItem()) if (!item->parentItem())
{ {
UBGraphicsPolygonItem* pi = qgraphicsitem_cast<UBGraphicsPolygonItem*>(item); bool isPolygon = qgraphicsitem_cast<UBGraphicsPolygonItem*>(item) != NULL;
bool isStrokesGroup = qgraphicsitem_cast<UBGraphicsStrokesGroup*>(item) != NULL;
if(!pi && !mTools.contains(item) && !isBackgroundObject(item)) if(!isPolygon && !isStrokesGroup && !mTools.contains(item) && !isBackgroundObject(item))
{ {
removeItem(item); removeItem(item);
removedItems << item; removedItems << 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