Fix YACReaderFlowGL::remove

last image wasn't getting it's index modified
This commit is contained in:
Luis Ángel San Martín 2023-08-17 19:39:51 +02:00
parent 5b8ec75e5f
commit d0915024e2

View File

@ -712,7 +712,7 @@ void YACReaderFlowGL::remove(int item)
QOpenGLTexture *texture = images[item].texture; QOpenGLTexture *texture = images[item].texture;
int count = item; int count = item;
while (count <= numObjects - 2) { while (count <= numObjects - 1) {
images[count].index--; images[count].index--;
count++; count++;
} }