From 7de9649b2f2cb3c1bb80398a10fbb0363ae5ab82 Mon Sep 17 00:00:00 2001 From: tresf Date: Fri, 22 Dec 2017 14:54:43 -0500 Subject: [PATCH] Fix quantization of pasted notes Fixes a regression caused by #4058 --- src/gui/editors/PianoRoll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index f1e1c93561a..98547583c21 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -3757,7 +3757,7 @@ void PianoRoll::pasteNotes() // create the note Note cur_note; cur_note.restoreState( list.item( i ).toElement() ); - cur_note.setPos( cur_note.pos() + m_timeLine->pos() ); + cur_note.setPos( cur_note.pos() + Note::quantized( m_timeLine->pos(), quantization() ) ); // select it cur_note.setSelected( true );