Fix bug where horizontal and vertical borders where switched when page size was also given. Thanks Erik./a.out| sox -c 1 -e unsigned-integer -r 8000 -t u8 - -d --buffer 32 Closes #30
This commit is contained in:
parent
c29df64cd8
commit
d78b2cbdbc
1 changed files with 2 additions and 2 deletions
|
@ -816,11 +816,11 @@ def get_layout_fun(pagesize, imgsize, border, fit, auto_orient):
|
|||
pagewidth, pageheight = pagesize[0], pagesize[1]
|
||||
newborder = border
|
||||
if pagewidth is not None:
|
||||
fitwidth = pagewidth-2*newborder[0]
|
||||
fitwidth = pagewidth-2*newborder[1]
|
||||
else:
|
||||
fitwidth = None
|
||||
if pageheight is not None:
|
||||
fitheight = pageheight-2*newborder[1]
|
||||
fitheight = pageheight-2*newborder[0]
|
||||
else:
|
||||
fitheight = None
|
||||
if fit in [FitMode.fill, FitMode.enlarge] and \
|
||||
|
|
Loading…
Reference in a new issue