Ignore:
Timestamp:
2015-10-19T13:17:11+02:00 (9 years ago)
Author:
donvip
Message:

[josm_splinex] remove call to deprecated method

Location:
applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/DrawSplineAction.java

    r31130 r31644  
    277277            if (lockCounterpart) {
    278278                if (ph.point == SplinePoint.CONTROL_NEXT)
    279                     ph.sn.cprev = ph.sn.cnext.sub(new EastNorth(0, 0));
     279                    ph.sn.cprev = new EastNorth(0, 0).subtract(ph.sn.cnext);
    280280                else if (ph.point == SplinePoint.CONTROL_PREV)
    281                     ph.sn.cnext = ph.sn.cprev.sub(new EastNorth(0, 0));
     281                    ph.sn.cnext = new EastNorth(0, 0).subtract(ph.sn.cprev);
    282282            }
    283283        }
  • applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/Spline.java

    r31130 r31644  
    171171                return;
    172172            case CONTROL_PREV:
    173                 sn.cprev = sn.node.getEastNorth().sub(en);
     173                sn.cprev = en.subtract(sn.node.getEastNorth());
    174174                return;
    175175            case CONTROL_NEXT:
    176                 sn.cnext = sn.node.getEastNorth().sub(en);
     176                sn.cnext = en.subtract(sn.node.getEastNorth());
    177177                return;
    178178            }
Note: See TracChangeset for help on using the changeset viewer.