Changeset 394 in josm


Ignore:
Timestamp:
2007-10-15T23:24:25+02:00 (17 years ago)
Author:
gebner
Message:

Don't create zero length way segments.

File:
1 edited

Legend:

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

    r389 r394  
    140140                if (!shift && selection.size() == 1 && selection.iterator().next() instanceof Node) {
    141141                        Node n0 = (Node) selection.iterator().next();
     142                        if (n0 == n) {
     143                                return; // Don't create zero length way segments.
     144                        }
    142145
    143146                        // alt modifier makes connection to selected node but not existing way
Note: See TracChangeset for help on using the changeset viewer.