summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2013-02-18 19:47:19 +0100
committerAlbert Astals Cid <aacid@kde.org>2013-02-18 19:47:19 +0100
commit95609be551fc4413874b8980010be70fbbab112a (patch)
treed3e021552eccad5d5c95f3baa485dbf96f9c47cd
parent5c7057c61ed6e270e001c1f86632f265bebb6890 (diff)
Use the toLatin function in PageLabelInfo::indexToLabel
Wonder why Kristian never enabled it? Fixes bug #61034
-rw-r--r--poppler/PageLabelInfo.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/poppler/PageLabelInfo.cc b/poppler/PageLabelInfo.cc
index a099d11a..7e1c1555 100644
--- a/poppler/PageLabelInfo.cc
+++ b/poppler/PageLabelInfo.cc
@@ -136,7 +136,6 @@ static int fromLatin(const char *buffer)
return -1;
}
-#ifdef TEST
static void toLatin(int number, GooString *str, GBool uppercase) {
char base, letter;
int i, count;
@@ -152,7 +151,6 @@ static void toLatin(int number, GooString *str, GBool uppercase) {
for (i = 0; i < count; i++)
str->append(letter);
}
-#endif
PageLabelInfo::Interval::Interval(Object *dict, int baseA) {
Object obj;
@@ -332,9 +330,11 @@ GBool PageLabelInfo::indexToLabel(int index, GooString *label)
case Interval::UppercaseRoman:
toRoman(number, &number_string, gTrue);
break;
- case Interval::UppercaseLatin:
case Interval::LowercaseLatin:
- number = 0;
+ toLatin(number, &number_string, gFalse);
+ break;
+ case Interval::UppercaseLatin:
+ toLatin(number, &number_string, gTrue);
break;
case Interval::None:
break;