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()
{
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);