From 517ab79472c3f868e293e46085e0f36f8dcec87d Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Fri, 20 Mar 2009 14:21:08 +0000 Subject: [PATCH] Fix of issue 2843. svn: r12364 --- src/ReportBase/_Bibliography.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ReportBase/_Bibliography.py b/src/ReportBase/_Bibliography.py index 0af8b882e..82f9d4507 100644 --- a/src/ReportBase/_Bibliography.py +++ b/src/ReportBase/_Bibliography.py @@ -78,10 +78,10 @@ class Citation: second_letter = '' letter_count = len(string.lowercase) ref_count = len(self.__ref_list) - if ref_count > letter_count: + if ref_count > letter_count -1: # If there are more than 26 references, we need to use two # characters to uniquely identify them all. - first_letter = string.lowercase[ ref_count / letter_count ] + first_letter = string.lowercase[ ref_count / letter_count -1 ] second_letter = string.lowercase[ ref_count % letter_count ] key = first_letter + second_letter @@ -228,4 +228,4 @@ class Bibliography: if notehandle not in nl2: return False # Can't find anything different. They must be equal. - return True \ No newline at end of file + return True