mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 00:25:30 +01:00
...
This commit is contained in:
parent
71a18a47aa
commit
c10d539a68
1 changed files with 3 additions and 3 deletions
|
|
@ -355,11 +355,11 @@ def init_page(self):
|
|||
|
||||
@property
|
||||
def full_page_rect(self):
|
||||
page_width = self.page_width * self.xdpi / 72.0
|
||||
page_width = int(math.ceil(self.page_width * self.xdpi / 72.0))
|
||||
lm = int(math.ceil(self.left_margin * self.xdpi / 72.0))
|
||||
page_height = self.page_height * self.ydpi / 72.0
|
||||
page_height = int(math.ceil(self.page_height * self.ydpi / 72.0))
|
||||
tm = int(math.ceil(self.top_margin * self.ydpi / 72.0))
|
||||
return (-lm, -tm, page_width, page_height)
|
||||
return (-lm, -tm, page_width+1, page_height+1)
|
||||
|
||||
@property
|
||||
def current_page_num(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue