Fixed issue #481. Error: Valentina closes on 'Zoom Best Fit'.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-05-08 17:15:41 +03:00
parent 637ca7015e
commit e3d582fc5e

View File

@ -95,13 +95,7 @@ void VMainGraphicsScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VMainGraphicsScene::InitOrigins() void VMainGraphicsScene::InitOrigins()
{ {
foreach (QGraphicsItem *item, origins) origins.clear();
{
if (this->items().contains(item))
{
delete item;
}
}
QPen originsPen(Qt::green, ToPixel(WidthHairLine(Unit::Mm), Unit::Mm), Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin); QPen originsPen(Qt::green, ToPixel(WidthHairLine(Unit::Mm), Unit::Mm), Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
QBrush axisTextBrush(Qt::green); QBrush axisTextBrush(Qt::green);