- added check to avoid segfaults when closing the application
- reverted processMidiTime(), that processing is needed git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@252 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -96,12 +96,11 @@ automationPattern::~automationPattern()
|
||||
m_track->removeAutomationPattern( this );
|
||||
}
|
||||
|
||||
if( eng()->getAutomationEditor()->currentPattern() == this )
|
||||
if( eng()->getAutomationEditor()
|
||||
&& eng()->getAutomationEditor()->currentPattern() == this )
|
||||
{
|
||||
eng()->getAutomationEditor()->setCurrentPattern( NULL );
|
||||
}
|
||||
|
||||
m_time_map.clear();
|
||||
}
|
||||
|
||||
|
||||
@@ -254,13 +253,10 @@ const QString automationPattern::name( void )
|
||||
|
||||
void automationPattern::processMidiTime( const midiTime & _time )
|
||||
{
|
||||
if( m_time_map.size() > 1 )
|
||||
timeMap::iterator it = m_time_map.find( _time );
|
||||
if( it != m_time_map.end() )
|
||||
{
|
||||
timeMap::iterator it = m_time_map.find( _time );
|
||||
if( it != m_time_map.end() )
|
||||
{
|
||||
m_object->setLevel( it.data() );
|
||||
}
|
||||
m_object->setLevel( it.data() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user