From 234567cd0b783d43c7b6a76889c6ea52b30b30a5 Mon Sep 17 00:00:00 2001 From: Javier Serrano Polo Date: Sat, 8 Jul 2006 00:15:49 +0000 Subject: [PATCH] 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 --- include/automatable_object.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();