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

@@ -31,7 +31,7 @@
void inlineAutomation::saveSettings( QDomDocument & _doc,
QDomElement & _parent )
{
if( hasAutomationPattern() )
if( hasAutomation() )
{
QDomElement ap = _doc.createElement(
automationPattern::classNodeName() );

View File

@@ -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() );
}