Ignore:
Timestamp:
2009-10-28T20:14:07+01:00 (14 years ago)
Author:
Gubaer
Message:

fixed #3792: NPE when deleting the data layer while the deletion tool is active

File:
1 edited

Legend:

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

    r2323 r2343  
    2020
    2121    public void actionPerformed(ActionEvent e) {
    22         if (Main.map == null) return;
     22        if (!Main.isDisplayingMapView()) return;
    2323        Main.map.mapView.zoomToFactor(0.9);
    2424    }
     
    2727    protected void updateEnabledState() {
    2828        setEnabled(
    29                 Main.map != null
    30                 && Main.map.mapView != null
     29                Main.isDisplayingMapView()
    3130                && Main.map.mapView.hasLayers()
    3231        );
Note: See TracChangeset for help on using the changeset viewer.