Changeset 27066 in osm for applications/editors/josm/plugins/print/src/org
- Timestamp:
- 2011-11-15T23:00:51+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintableMapView.java
r27046 r27066 49 49 import org.openstreetmap.josm.gui.layer.Layer; 50 50 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 51 import org.openstreetmap.josm.gui.layer.ImageryLayer;52 51 53 52 /** … … 162 161 List<Layer> visibleLayers = getVisibleLayersInZOrder(); 163 162 for (Layer l : visibleLayers) { 164 if (l instanceof ImageryLayer) { 165 try { 166 /* This statement may have all kinds of unwanted side effects 167 * but ImageryLayers heavily depend on Main.map.mapView. */ 163 try { 164 if (! (l instanceof OsmDataLayer)) { 165 /* OsmDataLayer does not need this.*/ 166 167 /* This manipulations may have all kinds of unwanted side effects 168 * but many Layer implementations heavily depend on Main.map.mapView. */ 168 169 Main.map.mapView = this; 169 l.paint(g2d, this, box);170 170 } 171 finally { 172 Main.map.mapView = mapView; 173 } 171 l.paint(g2d, this, box); 174 172 } 175 else{176 l.paint(g2d, this, box);173 finally { 174 Main.map.mapView = mapView; 177 175 } 178 176 }
Note:
See TracChangeset
for help on using the changeset viewer.