[graphics/drawy] src/widgets/controller: fix: dropping multiple items losing positions

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 06a27c70dcfdfe8c0c51ce03de789a85adcdd8c3 by Laurent Montel, on behalf of Nikolay Kochulin.
Committed on 06/08/2026 at 18:09.
Pushed by mlaurent into branch 'master'.

fix: dropping multiple items losing positions

M  +1    -1    src/widgets/controller/controller.cpp

https://invent.kde.org/graphics/drawy/-/commit/06a27c70dcfdfe8c0c51ce03de789a85adcdd8c3

diff --git a/src/widgets/controller/controller.cpp b/src/widgets/controller/controller.cpp
index 51b7f76c..202120b5 100644
--- a/src/widgets/controller/controller.cpp
+++ b/src/widgets/controller/controller.cpp
@@ -337,7 +337,7 @@ void Controller::dragMove(QDragMoveEvent *event)
     for (const auto &item : std::as_const(m_droppedItems)) {
         const auto transform{item->transformObj().inverted()};
 
-        const auto localInitialPos{transform.map(item->boundingBox().center())};
+        const auto localInitialPos{transform.map(boundingBox.center())};
         const auto localFinalPos{transform.map(transformer.viewToWorld(contextEvent->pos()))};
 
         const auto localDelta{localFinalPos - localInitialPos};
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.