Scxml: Simplify code

Change-Id: Ia1ea8527054a9c94e5f40cca665f7f4b0a5c53e7
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Tobias Hunger
2016-11-29 14:39:05 +01:00
parent 6f48d5a9a3
commit b31bc37dca

View File

@@ -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) {