Improved timeline zero-length loop avoidance

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1604 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-09-13 21:56:07 +00:00
parent 5b449171d1
commit 9c356ad09b

View File

@@ -354,12 +354,11 @@ void timeLine::mouseMoveEvent( QMouseEvent * _me )
if( m_loopPos[0] == m_loopPos[1] )
{
// Note, swap 1 and 0 below and the behavior "skips" the other
// marking instead of pushing it. However, I think pushing the
// other marker makes more sense it keeps the markers in order
// marking instead of pushing it.
if( m_action == MoveLoopBegin )
m_loopPos[1] += midiTime::ticksPerTact();
else
m_loopPos[0] -= midiTime::ticksPerTact();
else
m_loopPos[1] += midiTime::ticksPerTact();
}
update();
break;