From 3a79dc1741d494b263c60017e4e97ec95c94c35b Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 19 Aug 2010 00:14:19 +0200 Subject: [PATCH] PianoRoll: allow chaning volume and panning of step notes There's no reason to not allow changing volume and panning of step notes in PianoRoll. Therefore simply check whether the length is not equal to zero (which might be disabled step notes) instead of checking for length being greater than zero. Closes #2836799. (cherry picked from commit 8286c1031d9f2c1733ad8f2cf6df1fe1c466d614) --- src/gui/piano_roll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/piano_roll.cpp b/src/gui/piano_roll.cpp index b97d70a82..7d8cee979 100644 --- a/src/gui/piano_roll.cpp +++ b/src/gui/piano_roll.cpp @@ -2014,7 +2014,7 @@ void pianoRoll::mouseMoveEvent( QMouseEvent * _me ) { if( ( *it )->pos().getTicks() >= ticks_start && ( *it )->pos().getTicks() <= ticks_end - && ( *it )->length().getTicks() > 0 + && ( *it )->length().getTicks() != 0 && ( ( *it )->selected() || ! use_selection ) ) { m_pattern->dataChanged();