"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/editors/PianoRoll.cpp" between
lmms_1.2.0.tar.xz and lmms_1.2.1.tar.xz

About: LMMS (Linux MultiMedia Studio) is a sound generation system (creation of melodies and beats, synthesis and mixing of sounds, arranging of samples; full MIDI support).

PianoRoll.cpp  (lmms_1.2.0.tar.xz):PianoRoll.cpp  (lmms_1.2.1.tar.xz)
skipping to change at line 523 skipping to change at line 523
{ {
QList<int> aok = getAllOctavesForKey(key); QList<int> aok = getAllOctavesForKey(key);
if ( m_markedSemiTones.contains(key) ) if ( m_markedSemiTones.contains(key) )
{ {
// lets erase all of the ones that match this by octave // lets erase all of the ones that match this by octave
QList<int>::iterator i; QList<int>::iterator i;
for (int ix = 0; ix < aok.size(); ++ix) for (int ix = 0; ix < aok.size(); ++ix)
{ {
i = qFind(m_markedSemiTones.begin(), m_ma rkedSemiTones.end(), aok.at(ix)); i = qFind(m_markedSemiTones.begin(), m_ma rkedSemiTones.end(), aok.at(ix));
m_markedSemiTones.erase(i); if (i != m_markedSemiTones.end())
{
m_markedSemiTones.erase(i);
}
} }
} }
else else
{ {
// we should add all of the ones that match this by octave // we should add all of the ones that match this by octave
m_markedSemiTones.append(aok); m_markedSemiTones.append(aok);
} }
break; break;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)