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()
|
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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user