From 9c7457d4f6060d429c03df6457b96aed6c8cd310 Mon Sep 17 00:00:00 2001 From: Pavel Shlyak Date: Fri, 4 Jan 2019 01:15:11 +0400 Subject: [PATCH] Corrected assignment 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 e5f6458b55e..954dde5b0a3 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 )