check whether the automation editor has been created

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@212 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Javier Serrano Polo
2006-07-08 00:15:49 +00:00
parent cdb854a5d5
commit 234567cd0b

View File

@@ -399,7 +399,8 @@ protected:
{
m_automation_pattern->putValue( midiTime( 0 ),
m_curLevel, FALSE );
if( eng()->getAutomationEditor()->currentPattern()
if( eng()->getAutomationEditor() &&
eng()->getAutomationEditor()->currentPattern()
== m_automation_pattern )
{
eng()->getAutomationEditor()->update();