fixed YACReaderFlowGL::remove when the last element is removed

This commit is contained in:
Luis Ángel San Martín 2014-10-12 17:30:30 +02:00
parent 4b6dc8893e
commit d9d1b5ff36

View File

@ -720,7 +720,7 @@ void YACReaderFlowGL::remove(int item)
paths.removeAt(item); paths.removeAt(item);
//reposition current selection //reposition current selection
if(item < currentSelected && currentSelected != 0){ if(item <= currentSelected && currentSelected != 0){
currentSelected--; currentSelected--;
} }