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