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:
@@ -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;
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -153,7 +153,7 @@ public:
|
||||
|
||||
void editDetuningPattern( void );
|
||||
|
||||
bool hasDetuningInfo( void );
|
||||
bool hasDetuningInfo( void ) const;
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user