From d9d1b5ff36572d086b41df704f889b91294b6746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 12 Oct 2014 17:30:30 +0200 Subject: [PATCH] fixed YACReaderFlowGL::remove when the last element is removed --- common/yacreader_flow_gl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/yacreader_flow_gl.cpp b/common/yacreader_flow_gl.cpp index 80d1d826..0058eab3 100644 --- a/common/yacreader_flow_gl.cpp +++ b/common/yacreader_flow_gl.cpp @@ -720,7 +720,7 @@ void YACReaderFlowGL::remove(int item) paths.removeAt(item); //reposition current selection - if(item < currentSelected && currentSelected != 0){ + if(item <= currentSelected && currentSelected != 0){ currentSelected--; }