avoid unnecessary level updates

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@248 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Javier Serrano Polo
2006-07-22 03:22:42 +00:00
parent 4d973ffb97
commit 685c7b9ef6

View File

@@ -460,6 +460,10 @@ private:
void setLevel( int _level )
{
if( m_curLevel == _level )
{
return;
}
saveJournallingState( FALSE );
m_automation_pattern->setUpdateFirst( FALSE );
setValue( _level * m_step );