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:
@@ -31,7 +31,7 @@
|
||||
void inlineAutomation::saveSettings( QDomDocument & _doc,
|
||||
QDomElement & _parent )
|
||||
{
|
||||
if( hasAutomationPattern() )
|
||||
if( hasAutomation() )
|
||||
{
|
||||
QDomElement ap = _doc.createElement(
|
||||
automationPattern::classNodeName() );
|
||||
|
||||
@@ -258,15 +258,9 @@ void note::createDetuning( void )
|
||||
|
||||
|
||||
|
||||
bool note::hasDetuningInfo( void )
|
||||
bool note::hasDetuningInfo( void ) const
|
||||
{
|
||||
if( m_detuning->hasAutomationPattern() )
|
||||
{
|
||||
const automationPattern::timeMap & map =
|
||||
m_detuning->getAutomationPattern()->getTimeMap();
|
||||
return( map.size() > 1 || map[0] != 0 );
|
||||
}
|
||||
return( FALSE );
|
||||
return( m_detuning && m_detuning->hasAutomation() );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user