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:
Tobias Doerffel
2008-09-21 11:26:05 +00:00
parent 77c40b9b90
commit f5d9a50394
2 changed files with 4 additions and 5 deletions

View File

@@ -1,5 +1,9 @@
2008-09-21 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* src/core/automation_pattern.cpp:
fixed automationPattern::length() for cases where the key of the
last value was the first tick in a new tact
* plugins/ladspa_effect/cmt/src/delay.cpp:
initialize CMT_PluginDescriptor with correct number of ports

View File

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