Gui: Do not reset placement when reordering top-level objects

This fixes #13690: Reordering top level objects destroys the Placement
This commit is contained in:
wmayer
2024-05-05 16:57:40 +02:00
committed by Yorik van Havre
parent 8a1c3ead0f
commit 638cbd02ae

View File

@@ -2166,7 +2166,8 @@ bool TreeWidget::dropInDocument(QDropEvent* event, TargetItemInfo& targetInfo,
}
else if (da == Qt::MoveAction && obj->getDocument() == targetInfo.targetDoc) {
// Moving a object within the document root.
res = obj;
// Do not set 'res' as changing the placement is not desired: #13690
droppedObjs.push_back(obj);
}
else {
// Moving a object from another document.