SANKORE-1063

preferencesAboutTextFull
Anatoly Mihalchenko 12 years ago
parent 8f06cfd8a1
commit 1ce5763adc
  1. 5
      src/domain/UBGraphicsScene.cpp

@ -1105,9 +1105,10 @@ void UBGraphicsScene::clearItems()
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);
removedItems << item;

Loading…
Cancel
Save