Explicitly convert float to int when calling to wx.Size in pure python pdfviewer

This commit is contained in:
Jorge Moraleda
2023-10-27 18:45:16 -04:00
parent e271c80cd8
commit 0cf08c27fd

View File

@@ -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: