- Timestamp:
- 2009-12-31T14:52:54+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r2719 r2720 237 237 layer.hook_up_mouse_events(); // Main.map.mapView should exist 238 238 // now. Can add mouse listener 239 Main.map.mapView.addPropertyChangeListener(layer); 240 if (!addedToggleDialog) { 241 Main.map.addToggleDialog(ImageViewerDialog.getInstance()); 242 addedToggleDialog = true; 243 } 239 244 240 245 if (! cancelled && layer.data.size() > 0) { … … 262 267 Loader loader = new Loader(files, gpxLayer); 263 268 Main.worker.execute(loader); 264 if (!addedToggleDialog) {265 Main.map.addToggleDialog(ImageViewerDialog.getInstance());266 addedToggleDialog = true;267 }268 269 } 269 270 … … 275 276 this.data = data; 276 277 this.gpxLayer = gpxLayer; 277 Main.map.mapView.addPropertyChangeListener(this);278 278 } 279 279
Note:
See TracChangeset
for help on using the changeset viewer.