Fix potential crash.
--HG-- branch : develop
This commit is contained in:
parent
84c96c35dd
commit
3f403e411a
|
@ -210,9 +210,12 @@ void VMainGraphicsScene::InitOrigins()
|
|||
void VMainGraphicsScene::SetOriginsVisible(bool visible)
|
||||
{
|
||||
for (auto item : qAsConst(origins))
|
||||
{
|
||||
if (item)
|
||||
{
|
||||
item->setVisible(visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user