Ticket #5560: extrudeBuilgins2.diff

File extrudeBuilgins2.diff, 995 bytes (added by extropy, 11 years ago)

Fixed a bug with buildings.

  • src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java

     
    323323                    //find if the new points overlap existing segments (in case of 90 degree angles)
    324324                    Node nextNode = getNextNode(selectedSegment.lowerIndex + 1);
    325325                    nodeOverlapsSegment = nextNode != null && segmentsParralel(initialN2en, nextNode.getEastNorth(), initialN2en, newN2en);
    326                     hasOtherWays = hasNodeOtherWays(selectedSegment.getFirstNode(), selectedSegment.way);
     326                    hasOtherWays = hasNodeOtherWays(selectedSegment.getSecondNode(), selectedSegment.way);
    327327
    328328                    if (nodeOverlapsSegment && !alwaysCreateNodes && !hasOtherWays) {
    329329                        //move existing node