mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Explicitly convert float to int when calling to wx.Size in pure python pdfviewer
This commit is contained in:
@@ -1077,7 +1077,7 @@ class pdfPrintout(wx.Printout):
|
||||
pageno = page - 1 # zero based
|
||||
width = self.view.pagewidth
|
||||
height = self.view.pageheight
|
||||
self.FitThisSizeToPage(wx.Size(width*sfac, height*sfac))
|
||||
self.FitThisSizeToPage(wx.Size(int(width*sfac), int(height*sfac)))
|
||||
dc = self.GetDC()
|
||||
gc = wx.GraphicsContext.Create(dc)
|
||||
if not mupdf:
|
||||
|
||||
Reference in New Issue
Block a user