mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix overlay_image() failing if floats are passed as left/top
This commit is contained in:
parent
06f4ed353e
commit
d8227f7f1a
@ -74,6 +74,7 @@ def overlay_image(img, canvas=None, left=0, top=0):
|
||||
if canvas is None:
|
||||
canvas = QImage(img.size(), QImage.Format_RGB32)
|
||||
canvas.fill(Qt.white)
|
||||
left, top = int(left), int(top)
|
||||
if imageops is None:
|
||||
# This is for people running from source who have not updated the
|
||||
# binary and so do not have the imageops module
|
||||
|
Loading…
x
Reference in New Issue
Block a user