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