mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix typo causing incorrect rendering of non square images
This commit is contained in:
parent
04137a0b25
commit
9a83c2b796
@ -53,7 +53,7 @@ class Plot(PixmapItem):
|
|||||||
|
|
||||||
def __init__(self, plot, dpi):
|
def __init__(self, plot, dpi):
|
||||||
img = plot.refobj
|
img = plot.refobj
|
||||||
xsize, ysize = dpi*plot.attrs['xsize']/720., dpi*plot.attrs['xsize']/720.
|
xsize, ysize = dpi*plot.attrs['xsize']/720., dpi*plot.attrs['ysize']/720.
|
||||||
x0, y0, x1, y1 = img.x0, img.y0, img.x1, img.y1
|
x0, y0, x1, y1 = img.x0, img.y0, img.x1, img.y1
|
||||||
data, encoding = img.data, img.encoding
|
data, encoding = img.data, img.encoding
|
||||||
PixmapItem.__init__(self, data, encoding, x0, y0, x1, y1, xsize, ysize)
|
PixmapItem.__init__(self, data, encoding, x0, y0, x1, y1, xsize, ysize)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user