Changeset 21493 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrabPlanImage.java
- Timestamp:
- 2010-05-28T21:22:49+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrabPlanImage.java
r21202 r21493 64 64 public void actionInterrupted() { 65 65 actionCompleted(); 66 wmsLayer = null; 66 if (wmsLayer != null) { 67 Main.map.mapView.removeLayer(wmsLayer); 68 wmsLayer = null; 69 } 67 70 } 68 71 … … 101 104 // wait until plan image is fully loaded and joined into one single image 102 105 boolean loadedFromCache = downloadWMSPlanImage.waitFinished(); 103 if (wmsLayer.images.size() == 1 && !loadedFromCache) { 106 if (loadedFromCache) { 107 Main.map.repaint(); 108 } else if (wmsLayer.images.size() == 0) { 109 // action cancelled or image loaded from cache (and already georeferenced) 110 actionInterrupted(); 111 } else { 104 112 int reply = JOptionPane.CANCEL_OPTION; 105 113 if (wmsLayer.isAlreadyGeoreferenced()) { … … 120 128 startGeoreferencing(); 121 129 } 122 } else // action cancelled or image loaded from cache (and already georeferenced) 123 Main.map.repaint(); 130 } 124 131 } 125 132 … … 270 277 JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, 271 278 null, options, options[0]); 279 countMouseClicked = 0; 272 280 if (selectedValue == 0) { // "Cancel" 273 281 // remove layer … … 275 283 wmsLayer = null; 276 284 Main.map.mapView.removeMouseListener(this); 277 return false; 278 } else 279 countMouseClicked = 0; 285 return false; 286 } 280 287 return true; 281 288 }
Note:
See TracChangeset
for help on using the changeset viewer.
