From 7aa30c4ecceb9de74633c22472da48f2e3a5fa6f Mon Sep 17 00:00:00 2001 From: IanCaio Date: Sat, 6 Mar 2021 06:42:20 -0300 Subject: [PATCH] Fix small bug on #5848 (#5933) m_gridMode was not being initialized on the PianoRoll constructor. For that reason the first note drag without changing the GridMode would result in m_gridMode being used unintialized and neither the Snap nor Nudge mode being used. Here, the result of this was a note being moved unquantized. This fixes it by calling changeSnapMode() after setting up the snapModel on the constructor. --- src/gui/editors/PianoRoll.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index 5dcb6a06f..eace4a464 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -442,6 +442,7 @@ PianoRoll::PianoRoll() : m_snapModel.addItem(tr("Nudge")); m_snapModel.addItem(tr("Snap")); m_snapModel.setValue(0); + changeSnapMode(); connect(&m_snapModel, SIGNAL(dataChanged()), this, SLOT(changeSnapMode()));