Changeset 12630 in josm for trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
- Timestamp:
- 2017-08-24T00:15:51+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
r12620 r12630 39 39 import org.openstreetmap.josm.gui.DefaultNameFormatter; 40 40 import org.openstreetmap.josm.gui.ExtendedDialog; 41 import org.openstreetmap.josm.gui.MainApplication; 41 42 import org.openstreetmap.josm.gui.MapView; 42 43 import org.openstreetmap.josm.gui.Notification; … … 308 309 309 310 // If this wasn't called from menu, place it where the cursor is/was 311 MapView mv = MainApplication.getMap().mapView; 310 312 if (e.getSource() instanceof JPanel) { 311 MapView mv = Main.map.mapView;312 313 n.setCoor(mv.getLatLon(mv.lastMEvent.getX(), mv.lastMEvent.getY())); 313 314 } … … 315 316 Main.main.undoRedo.add(new SequenceCommand(tr("Unglued Node"), cmds)); 316 317 getLayerManager().getEditDataSet().setSelected(n); 317 Main.map.mapView.repaint();318 mv.repaint(); 318 319 } 319 320
Note:
See TracChangeset
for help on using the changeset viewer.