Skip to content

Commit

Permalink
collection: fix empty filenames (introduced in f452786)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidanger committed Jun 9, 2023
1 parent 66ec1ab commit f7cf3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageCollection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class MultipleImageCollection : public ImageCollection {

const std::string& getFilename(int index) const override
{
if (index == 0)
if (index >= totalLength)
return empty;
int i = 0;
while (index < totalLength && index >= lengths[i]) {
Expand Down

0 comments on commit f7cf3ce

Please sign in to comment.