Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/epubview/jobs.py
diff options
context:
space:
mode:
Diffstat (limited to 'epubview/jobs.py')
-rw-r--r--epubview/jobs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/epubview/jobs.py b/epubview/jobs.py
index 8dc26c7..bfd751d 100644
--- a/epubview/jobs.py
+++ b/epubview/jobs.py
@@ -154,7 +154,7 @@ class _JobPaginator(gobject.GObject):
pagelen = 1 / pages
self._pagemap[float(self._pagecount + i)] = (f.props.uri, (i - 1) / math.ceil(pages), pagelen)
- self._pagecount += math.ceil(pages)
+ self._pagecount += int(math.ceil(pages))
self._filedict[f.props.uri.replace('file://', '')] = (math.ceil(pages), math.ceil(pages) - pages)
self._bookheight += pageheight