Ignore:
Timestamp:
2011-03-02T12:12:03+01:00 (13 years ago)
Author:
stoecker
Message:

hopefully fix #5427

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java

    r3919 r3939  
    303303                    //find if the new points overlap existing segments (in case of 90 degree angles)
    304304                    Node prevNode = getPreviousNode(selectedSegment.lowerIndex);
    305                     boolean nodeOverlapsSegment = prevNode != null && Geometry.segmentsParralel(initialN1en, prevNode.getEastNorth(), initialN1en, newN1en);
     305                    boolean nodeOverlapsSegment = prevNode != null && Geometry.segmentsParallel(initialN1en, prevNode.getEastNorth(), initialN1en, newN1en);
    306306                    boolean hasOtherWays = this.hasNodeOtherWays(selectedSegment.getFirstNode(), selectedSegment.way);
    307307
     
    320320                    //find if the new points overlap existing segments (in case of 90 degree angles)
    321321                    Node nextNode = getNextNode(selectedSegment.lowerIndex + 1);
    322                     nodeOverlapsSegment = nextNode != null && Geometry.segmentsParralel(initialN2en, nextNode.getEastNorth(), initialN2en, newN2en);
     322                    nodeOverlapsSegment = nextNode != null && Geometry.segmentsParallel(initialN2en, nextNode.getEastNorth(), initialN2en, newN2en);
    323323                    hasOtherWays = hasNodeOtherWays(selectedSegment.getSecondNode(), selectedSegment.way);
    324324
Note: See TracChangeset for help on using the changeset viewer.