Dear Josm-dev,

Could you please apply the following small patch fixing the issue of
the function "align nodes in circle" not working when the current
projection is Lambert (or any projection not supporting "new
LatLon(0,0)") ?

In class AlignInCircleAction.java,
replace this:
        if (center == null) {
            center = new Node(new LatLon(0, 0));
            Node n0, n1, n2, prvni, druhy;

by:

        if (center == null) {
            center = new Node(new LatLon(0, 0));
            center.eastNorth = new EastNorth(0, 0); // to be
independent of projection
            Node n0, n1, n2;

Thank you to matthew-...@newtoncomputing.co.uk who suggested this
short solution some time ago.

Pieren

_______________________________________________
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev

Reply via email to