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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user