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

@ -211,7 +211,10 @@ void VMainGraphicsScene::SetOriginsVisible(bool visible)
{ {
for (auto item : qAsConst(origins)) for (auto item : qAsConst(origins))
{ {
item->setVisible(visible); if (item)
{
item->setVisible(visible);
}
} }
} }