From c467f5b08a01fa5b070fe93c61f5ae66e05e1d1d Mon Sep 17 00:00:00 2001 From: Pavel Shlyak Date: Mon, 7 Jan 2019 06:30:27 +0400 Subject: [PATCH] Corrected assignment (#4757) There is no need in conversion from float to integer --- 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 e5f6458b5..954dde5b0 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -3269,7 +3269,7 @@ void PianoRoll::wheelEvent(QWheelEvent * we ) } if( nv.size() > 0 ) { - const int step = we->delta() > 0 ? 1.0 : -1.0; + const int step = we->delta() > 0 ? 1 : -1; if( m_noteEditMode == NoteEditVolume ) { for ( Note * n : nv )