- Timestamp:
- 2010-08-25T11:55:50+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/MapPaintPreference.java
r3466 r3467 18 18 import org.openstreetmap.josm.Main; 19 19 import org.openstreetmap.josm.data.osm.OsmPrimitive; 20 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 20 21 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles; 21 22 import org.openstreetmap.josm.tools.GBC; … … 91 92 restart = true; 92 93 } 93 if(Main.pref.put("mappaint.style", styleCombo.getEditor().getItem().toString())) 94 if(Main.pref.put("mappaint.style", styleCombo.getEditor().getItem().toString()) 95 && Main.isDisplayingMapView()) 94 96 { 95 for(Osm Primitive osm : Main.main.getCurrentDataSet().allPrimitives())97 for(OsmDataLayer l : Main.map.mapView.getLayersOfType(OsmDataLayer.class)) 96 98 { 97 osm.clearCached(); 99 for(OsmPrimitive osm : l.data.allPrimitives()) 100 { 101 osm.clearCached(); 102 } 98 103 } 99 104 }
Note:
See TracChangeset
for help on using the changeset viewer.