Merge branch 'master' of github.com:LMMS/lmms

This commit is contained in:
Tobias Doerffel
2014-03-26 11:40:55 +01:00
53 changed files with 1664 additions and 3 deletions

View File

@@ -679,7 +679,11 @@ void graphModel::shiftPhase( int _deg )
// shift phase
for( int i = 0; i < length(); i++ )
m_samples[i] = temp[ ( i + offset ) % length() ];
{
int o = ( i + offset ) % length();
while( o < 0 ) o += length();
m_samples[i] = temp[o];
}
emit samplesChanged( 0, length()-1 );
}