From 638cbd02ae13c66e194c3d90f647b5dec64e134e Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 5 May 2024 16:57:40 +0200 Subject: [PATCH] Gui: Do not reset placement when reordering top-level objects This fixes #13690: Reordering top level objects destroys the Placement --- src/Gui/Tree.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index 6bffebdbea..110e5ac262 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -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.