From f5d9a503947e1a23fc6706d217b12683b325beb6 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 21 Sep 2008 11:26:05 +0000 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ src/core/automation_pattern.cpp | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 070ddd094..a5c1e78ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-09-21 Tobias Doerffel + * 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 diff --git a/src/core/automation_pattern.cpp b/src/core/automation_pattern.cpp index 15be55746..06dd91a1a 100644 --- a/src/core/automation_pattern.cpp +++ b/src/core/automation_pattern.cpp @@ -148,11 +148,6 @@ midiTime automationPattern::length( void ) const { max_length = tMax( max_length, it.key() ); } - if( max_length % DefaultTicksPerTact == 0 ) - { - return( midiTime( tMax( max_length, - DefaultTicksPerTact ) ) ); - } return( midiTime( tMax( midiTime( max_length ).getTact() + 1, 1 ), 0 ) ); }