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/Main.java

    r2328 r2343  
    7070
    7171abstract public class Main {
     72   
     73    /**
     74     * Replies true if JOSM currently displays a map view. False, if it doesn't, i.e. if
     75     * it only shows the MOTD panel.
     76     *
     77     * @return true if JOSM currently displays a map view
     78     */
     79    static public boolean isDisplayingMapView() {
     80        if (map == null) return false;
     81        if (map.mapView == null) return false;
     82        return true;
     83    }
    7284    /**
    7385     * Global parent component for all dialogs and message boxes
Note: See TracChangeset for help on using the changeset viewer.