Fixed issue #481. Error: Valentina closes on 'Zoom Best Fit'.
--HG-- branch : develop
This commit is contained in:
parent
637ca7015e
commit
e3d582fc5e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user