Skip to content

Commit efc7899

Browse files
committed
Fix #340 picking first instead of lage page for overview
1 parent db9a1d5 commit efc7899

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pympress/document.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,8 @@ def get_last_label_pages(self):
10721072
for page, label in enumerate(self.page_labels):
10731073
if label != last:
10741074
pages.append(page)
1075+
else:
1076+
pages[-1] = page
10751077
last = label
10761078
return pages
10771079

0 commit comments

Comments
 (0)