Changeset 12512 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2017-07-25T23:55:03+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #12870 - Undo while extrude causes exception

File:
1 edited

Legend:

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

    r11893 r12512  
    3939import org.openstreetmap.josm.data.Bounds;
    4040import org.openstreetmap.josm.data.coor.EastNorth;
     41import org.openstreetmap.josm.data.osm.DataIntegrityProblemException;
    4142import org.openstreetmap.josm.data.osm.Node;
    4243import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    535536                    addNewNode(e);
    536537                } else if (e.getPoint().distance(initialMousePos) > initialMoveThreshold && newN1en != null && selectedSegment != null) {
    537                     // main extrusion commands
    538                     performExtrusion();
     538                    try {
     539                        // main extrusion commands
     540                        performExtrusion();
     541                    } catch (DataIntegrityProblemException ex) {
     542                        // Can occur if calling undo while extruding, see #12870
     543                        Main.error(ex);
     544                    }
    539545                }
    540546            } else if (mode == Mode.translate || mode == Mode.translate_node) {
Note: See TracChangeset for help on using the changeset viewer.