Skip to content

Commit 3415338

Browse files
committed
Fixed #17
1 parent b6e11d7 commit 3415338

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* `--version` option.
66
* Added `--fonts` option for registering additional fonts. [#16](https://github.com/Zverik/Nik4/issues/16)
77
* Fixed `--center` with `--scale` error. [#18](https://github.com/Zverik/Nik4/issues/18)
8+
* Swapped sizes 4A0 and 2A0. [#17](https://github.com/Zverik/Nik4/issues/17)
89

910
## 1.5, 7.12.2014
1011

nik4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ def get_paper_size(name):
132132
if m:
133133
return [math.floor(1000 / 2**((int(m.group(1)) - 1) / 2.0) + 0.2), math.floor(1000 / 2**(int(m.group(1)) / 2.0) + 0.2)]
134134
# German extensions
135-
if name == '2a0':
136-
return [2378, 1682]
137135
if name == '4a0':
136+
return [2378, 1682]
137+
if name == '2a0':
138138
return [1682, 1189]
139139
# US Legal
140140
if re.match(r'^leg', name):

0 commit comments

Comments
 (0)