[poppler] poppler/PageLabelInfo.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 26 07:50:50 UTC 2021
poppler/PageLabelInfo.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit fa27a6349e2795503e46720cce6c4b19996990d7
Author: Albert Astals Cid <aacid at kde.org>
Date: Sun Oct 24 23:26:36 2021 +0200
refine PageLabelInfo::labelToIndex + intervals without style
diff --git a/poppler/PageLabelInfo.cc b/poppler/PageLabelInfo.cc
index 31cd3a6b..a9ba3062 100644
--- a/poppler/PageLabelInfo.cc
+++ b/poppler/PageLabelInfo.cc
@@ -151,7 +151,7 @@ bool PageLabelInfo::labelToIndex(GooString *label, int *index) const
}
break;
case Interval::None:
- if (interval.length == 1) {
+ if (interval.length == 1 && label->toStr() == interval.prefix) {
*index = interval.base;
return true;
} else {
More information about the poppler
mailing list