fixed inlineAutomation::hasAutomation()

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1251 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-06-30 21:48:21 +00:00
parent 1464d03b74
commit 459b13aad3
6 changed files with 60 additions and 12 deletions

View File

@@ -63,11 +63,21 @@ public:
void removeValue( const midiTime & _time );
inline const timeMap & getTimeMap( void ) const
{
return( m_timeMap );
}
inline timeMap & getTimeMap( void )
{
return( m_timeMap );
}
inline bool hasAutomation( void ) const
{
return( m_dynamic || getTimeMap()[0] != 0 );
}
float valueAt( const midiTime & _time );
const QString name( void ) const;

View File

@@ -45,9 +45,10 @@ public:
delete m_autoPattern;
}
inline bool hasAutomationPattern( void ) const
inline bool hasAutomation( void ) const
{
return( m_autoPattern != NULL );
return( m_autoPattern != NULL &&
m_autoPattern->hasAutomation() );
}
automationPattern * getAutomationPattern( void )

View File

@@ -153,7 +153,7 @@ public:
void editDetuningPattern( void );
bool hasDetuningInfo( void );
bool hasDetuningInfo( void ) const;
protected: