fixed behaviour for inline-automations with only one value in time-map

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1329 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-07-18 13:00:07 +00:00
parent 7232170608
commit d13ac2a54a
2 changed files with 8 additions and 1 deletions

View File

@@ -42,6 +42,11 @@ public:
{
}
virtual float defaultValue( void ) const
{
return( 0 );
}
virtual QString displayName( void ) const
{
return( tr( "Note detuning" ) );

View File

@@ -48,10 +48,12 @@ public:
}
}
virtual float defaultValue( void ) const = 0;
inline bool hasAutomation( void ) const
{
return( m_autoPattern != NULL &&
m_autoPattern->hasAutomation() );
m_autoPattern->getTimeMap()[0] != defaultValue() );
}
automationPattern * getAutomationPattern( void )