fixed missing automationPattern-initialization (i.e. setFirstValue()-call) which made automation-editor not work properly if no events were drawn so far

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@777 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-03-08 09:22:05 +00:00
parent aa7d45f3ec
commit ee04ea3c74

View File

@@ -333,6 +333,7 @@ automationPattern * automatableModel<T, EDIT_STEP_TYPE>::getAutomationPattern(
if( !m_automationPattern )
{
m_automationPattern = new automationPattern( m_track, this );
setFirstValue();
syncAutomationPattern();
}
return( m_automationPattern );