critical fixes

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@246 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2006-07-20 09:29:40 +00:00
parent 5c8a2f9b9f
commit a76803759c
3 changed files with 19 additions and 8 deletions

View File

@@ -254,10 +254,13 @@ const QString automationPattern::name( void )
void automationPattern::processMidiTime( const midiTime & _time )
{
timeMap::iterator it = m_time_map.find( _time );
if( it != m_time_map.end() )
if( m_time_map.size() > 1 )
{
m_object->setLevel( it.data() );
timeMap::iterator it = m_time_map.find( _time );
if( it != m_time_map.end() )
{
m_object->setLevel( it.data() );
}
}
}