Ignore:
Timestamp:
2009-11-28T17:05:44+01:00 (16 years ago)
Author:
pieren
Message:

Fix minor issues if Grab is called without layer (possible since projection rework)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrab.java

    r18544 r18838  
    1111import org.openstreetmap.josm.Main;
    1212import org.openstreetmap.josm.actions.JosmAction;
    13 import org.openstreetmap.josm.data.projection.LambertCC9Zones;
    1413import org.openstreetmap.josm.tools.Shortcut;
    1514
     
    3029
    3130    public void actionPerformed(ActionEvent e) {
    32         // with the new projection LambertCC9Zones, we are able to determin the zone and thus lat/lon of
    33         // downloaded commune bounding box
    34         if (Main.map != null || Main.proj instanceof LambertCC9Zones) {
     31        if (Main.map != null) {
    3532            if (CadastrePlugin.isCadastreProjection()) {
    3633                WMSLayer wmsLayer = WMSDownloadAction.getLayer();
     
    4340                         + "projections and retry"));
    4441            }
    45         }
     42        } else
     43            new MenuActionNewLocation().actionPerformed(e);
    4644    }
    4745
Note: See TracChangeset for help on using the changeset viewer.