diff --git a/src/EngineImages.cpp b/src/EngineImages.cpp index 3745555b1008..1b703fe124fb 100644 --- a/src/EngineImages.cpp +++ b/src/EngineImages.cpp @@ -907,7 +907,7 @@ TocTree* EngineImageDir::GetToc() { TocItem* root = newImageDirTocItem(nullptr, label, 1); root->id = 1; for (int i = 2; i <= PageCount(); i++) { - label = GetPageLabel(1); + label = GetPageLabel(i); TocItem* item = newImageDirTocItem(root, label, i); item->id = i; root->AddSiblingAtEnd(item);