hexmapextension icon indicating copy to clipboard operation
hexmapextension copied to clipboard

Column Alpha Coordinates broken for Python 3

Open paulmelis opened this issue 4 years ago • 1 comments

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.

paulmelis avatar Aug 18 '20 19:08 paulmelis

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

lifelike avatar Aug 23 '20 15:08 lifelike

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

lifelike avatar Jan 26 '23 22:01 lifelike