Fix potential crash.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-02-11 13:32:36 +02:00
parent 84c96c35dd
commit 3f403e411a

View File

@ -210,10 +210,13 @@ void VMainGraphicsScene::InitOrigins()
void VMainGraphicsScene::SetOriginsVisible(bool visible)
{
for (auto item : qAsConst(origins))
{
if (item)
{
item->setVisible(visible);
}
}
}
//---------------------------------------------------------------------------------------------------------------------
QPointF VMainGraphicsScene::getScenePos() const