Commit bba8184d authored by Fabio Bas's avatar Fabio Bas
Browse files

Fix off by one

parent 88dfea8e
......@@ -95,7 +95,7 @@ bool PictureToLoad::nextSet()
QString PictureToLoad::getSetName() const
{
if (setIndex < sortedSets.size() - 1)
if (setIndex < sortedSets.size())
return sortedSets[setIndex]->getCorrectedShortName();
else
return QString("");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment