From e3d582fc5ea0930b37e581cb71b728347a9a909d Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 8 May 2016 17:15:41 +0300 Subject: [PATCH] Fixed issue #481. Error: Valentina closes on 'Zoom Best Fit'. --HG-- branch : develop --- src/libs/vwidgets/vmaingraphicsscene.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/libs/vwidgets/vmaingraphicsscene.cpp b/src/libs/vwidgets/vmaingraphicsscene.cpp index d1940cdac..35fe577c8 100644 --- a/src/libs/vwidgets/vmaingraphicsscene.cpp +++ b/src/libs/vwidgets/vmaingraphicsscene.cpp @@ -95,13 +95,7 @@ void VMainGraphicsScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) //--------------------------------------------------------------------------------------------------------------------- void VMainGraphicsScene::InitOrigins() { - foreach (QGraphicsItem *item, origins) - { - if (this->items().contains(item)) - { - delete item; - } - } + origins.clear(); QPen originsPen(Qt::green, ToPixel(WidthHairLine(Unit::Mm), Unit::Mm), Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin); QBrush axisTextBrush(Qt::green);