From 67ca4d73f61c5a7e103c6713cf79e36e7f3e1e9d Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 29 Jan 2012 19:54:41 +0100 Subject: [PATCH] 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. --- src/core/AutomationPattern.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/AutomationPattern.cpp b/src/core/AutomationPattern.cpp index f6ee0c096..003f75856 100644 --- a/src/core/AutomationPattern.cpp +++ b/src/core/AutomationPattern.cpp @@ -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();