mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
Fix YACReaderFlowGL::remove
last image wasn't getting it's index modified
This commit is contained in:
@ -712,7 +712,7 @@ void YACReaderFlowGL::remove(int item)
|
||||
QOpenGLTexture *texture = images[item].texture;
|
||||
|
||||
int count = item;
|
||||
while (count <= numObjects - 2) {
|
||||
while (count <= numObjects - 1) {
|
||||
images[count].index--;
|
||||
count++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user