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.
This commit is contained in:
Tobias Doerffel
2010-08-19 00:14:19 +02:00
parent 46c20bdcbd
commit 8286c1031d

View File

@@ -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();