mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Fix YACReaderFlowGL::remove
last image wasn't getting it's index modified
This commit is contained in:
parent
5b8ec75e5f
commit
d0915024e2
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user