AutomationPattern: fixed loadSettings() when there's just one value

If the settings for an AutomationPattern contain just one value at
position 0, this value was not loaded properly. Thanks to raine for
pointing out this issue and providing a patch.

Closes #3448562.
This commit is contained in:
Tobias Doerffel
2012-01-29 19:54:41 +01:00
parent 0fc20dffd3
commit 67ca4d73f6

View File

@@ -325,7 +325,7 @@ void AutomationPattern::loadSettings( const QDomElement & _this )
}
}
m_hasAutomation = m_timeMap.size() > 1;
m_hasAutomation = m_timeMap.size() > 0;
if( m_hasAutomation == false )
{
for( objectVector::iterator it = m_objects.begin();