Ignore:
Timestamp:
2017-08-24T00:15:51+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.map and Main.isDisplayingMapView(). Replacements: gui.MainApplication.getMap() / gui.MainApplication.isDisplayingMapView()

File:
1 edited

Legend:

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

    r12620 r12630  
    3939import org.openstreetmap.josm.gui.DefaultNameFormatter;
    4040import org.openstreetmap.josm.gui.ExtendedDialog;
     41import org.openstreetmap.josm.gui.MainApplication;
    4142import org.openstreetmap.josm.gui.MapView;
    4243import org.openstreetmap.josm.gui.Notification;
     
    308309
    309310        // If this wasn't called from menu, place it where the cursor is/was
     311        MapView mv = MainApplication.getMap().mapView;
    310312        if (e.getSource() instanceof JPanel) {
    311             MapView mv = Main.map.mapView;
    312313            n.setCoor(mv.getLatLon(mv.lastMEvent.getX(), mv.lastMEvent.getY()));
    313314        }
     
    315316        Main.main.undoRedo.add(new SequenceCommand(tr("Unglued Node"), cmds));
    316317        getLayerManager().getEditDataSet().setSelected(n);
    317         Main.map.mapView.repaint();
     318        mv.repaint();
    318319    }
    319320
Note: See TracChangeset for help on using the changeset viewer.