From 51b08257304bfcc51847e59084ece0751b9ce27f Mon Sep 17 00:00:00 2001 From: Calum Matheson Date: Thu, 19 Sep 2024 16:56:15 +0100 Subject: [PATCH] Fix drop from palette to multimeasure rest --- src/notation/internal/notationinteraction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notation/internal/notationinteraction.cpp b/src/notation/internal/notationinteraction.cpp index 430a26c0c54f8..8e87a63bd5b2e 100644 --- a/src/notation/internal/notationinteraction.cpp +++ b/src/notation/internal/notationinteraction.cpp @@ -1530,7 +1530,7 @@ bool NotationInteraction::drop(const PointF& pos, Qt::KeyboardModifiers modifier //! NOTE: Helper method for NotationInteraction::drop. Handles drop logic for majority of elements (returns "accepted") bool NotationInteraction::doDropStandard() { - EngravingItem* el = dropTarget(m_dropData.ed); + EngravingItem* el = m_dropData.dropTarget ? m_dropData.dropTarget : dropTarget(m_dropData.ed); if (!el) { if (!dropCanvas(m_dropData.ed.dropElement)) { LOGD("cannot drop %s(%p) to canvas", m_dropData.ed.dropElement->typeName(), m_dropData.ed.dropElement);