fixed automationPattern::length() for cases where the key of the last value was the first tick in a new tact
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1663 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -148,11 +148,6 @@ midiTime automationPattern::length( void ) const
|
||||
{
|
||||
max_length = tMax<tick>( max_length, it.key() );
|
||||
}
|
||||
if( max_length % DefaultTicksPerTact == 0 )
|
||||
{
|
||||
return( midiTime( tMax<tick>( max_length,
|
||||
DefaultTicksPerTact ) ) );
|
||||
}
|
||||
return( midiTime( tMax( midiTime( max_length ).getTact() + 1, 1 ),
|
||||
0 ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user