lifelike / hexmapextension

Inkscape extension for creating hex grids suitable for boardgame maps.
129 stars 16 forks source link

Column Alpha Coordinates broken for Python 3 #39

Closed paulmelis closed 1 year ago

paulmelis commented 4 years ago

The line /usr/bin/env python in hexmap.py might resolve to Python 3.x for some users (including me). The division for d in

https://github.com/lifelike/hexmapextension/blob/11401e23889318bdefb72df6980393050299d8cc/hexmap.py#L36-L39

then no longer returns an integer with Python 3, but a float value (as / is changed in Py 3). Which causes an issue for the return value. Replacing d = c / 26 with d = c // 26 fixes it and also works in Python 2.

lifelike commented 3 years ago

Good catch! This must be fixed as part of supporting Inkscape 1.0.

lifelike commented 1 year ago

This was fixed by commit 58e9830cf9f5841a112743b9f05b4bf1a0b60a6f by Mario Voigt as part of updating this extension to work with Inkscape 1.0.