From 8286c1031d9f2c1733ad8f2cf6df1fe1c466d614 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. --- 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 a62207857..8c0ad153b 100644 --- a/src/gui/piano_roll.cpp +++ b/src/gui/piano_roll.cpp @@ -2002,7 +2002,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 )->isSelected() || ! use_selection ) ) { m_pattern->dataChanged();