diff --git a/include/automatable_object.h b/include/automatable_object.h index 9d0cbf413..de0f288ab 100755 --- a/include/automatable_object.h +++ b/include/automatable_object.h @@ -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();