Changeset 29601 in osm for applications/editors/josm/plugins/piclayer
- Timestamp:
- 2013-05-27T12:09:07+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/piclayer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/piclayer/build.xml
r29596 r29601 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <project name="PicLayer" default="dist" basedir="."> 3 <property name="commit.message" value="PicLayer - # 7127 - added world file loading option"/>3 <property name="commit.message" value="PicLayer - #8743 - fixed NPE when removing last layer"/> 4 4 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 5 5 <property name="plugin.main.version" value="5960"/> -
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerPlugin.java
r27766 r29601 169 169 new SavePictureCalibrationAction((PicLayerAbstract) arg0).actionPerformed(null); 170 170 } 171 boolean enable = Main.map.mapView.getAllLayers().size() != 0; 171 // Why should I do all these checks now? 172 boolean enable = Main.map != null && Main.map.mapView != null && Main.map.mapView.getAllLayers() != null && Main.map.mapView.getAllLayers().size() != 0; 172 173 menu.setEnabled(enable); 173 174 }
Note:
See TracChangeset
for help on using the changeset viewer.