Skip to content

Commit

Permalink
Fixed #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Zverik committed May 16, 2015
1 parent d557d4b commit b6e11d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* `--version` option.
* Added `--fonts` option for registering additional fonts. [#16](https://github.com/Zverik/Nik4/issues/16)
* Fixed `--center` with `--scale` error. [#18](https://github.com/Zverik/Nik4/issues/18)

## 1.5, 7.12.2014

Expand Down
4 changes: 2 additions & 2 deletions nik4.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
except ImportError:
HAS_CAIRO = False

VERSION = '1.5.1'
VERSION = '1.5.2'
TILE_BUFFER = 128
IM_MONTAGE = 'montage'

Expand Down Expand Up @@ -286,7 +286,7 @@ def add_fonts(path):
scale = options.scale * 0.00028 / scale_factor
# Now we have to divide by cos(lat), but we might not know latitude at this point
if options.center:
scale = scale / math.cos(math.radians(center.y))
scale = scale / math.cos(math.radians(options.center[1]))
elif options.bbox:
scale = scale / math.cos(math.radians((options.bbox[3] + options.bbox[1]) / 2))
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='Nik4',
version='1.5.1',
version='1.5.2',
license='WTFPL',
description='Command-line interface to a Mapnik rendering toolkit',
long_description="""
Expand Down

0 comments on commit b6e11d7

Please sign in to comment.