diff --git a/src/plugins/scxmleditor/plugin_interface/graphicsscene.cpp b/src/plugins/scxmleditor/plugin_interface/graphicsscene.cpp index 4e531934587..abbe889472e 100644 --- a/src/plugins/scxmleditor/plugin_interface/graphicsscene.cpp +++ b/src/plugins/scxmleditor/plugin_interface/graphicsscene.cpp @@ -492,7 +492,7 @@ void GraphicsScene::endTagChange(ScxmlDocument::TagChange change, ScxmlTag *tag, if (childItem) { BaseItem *newParentItem = findItem(tag->parentTag()); - BaseItem *oldParentItem = childItem ? childItem->parentBaseItem() : nullptr; + BaseItem *oldParentItem = childItem->parentBaseItem(); QPointF sPos = childItem->scenePos(); if (oldParentItem) {