Changeset 7191 in josm
- Timestamp:
- 2014-05-29T17:28:27+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java
r7084 r7191 18 18 import org.openstreetmap.josm.gui.NavigatableComponent; 19 19 import org.openstreetmap.josm.gui.mappaint.StyleCache.StyleList; 20 import org.openstreetmap.josm.gui.util.GuiHelper; 20 21 import org.openstreetmap.josm.tools.Pair; 21 22 import org.openstreetmap.josm.tools.Utils; … … 37 38 } 38 39 40 /** 41 * Clear the style cache for all primitives of all DataSets. 42 */ 39 43 public void clearCached() { 40 cacheIdx++; 44 // run in EDT to make sure this isn't called during rendering run 45 // {@link org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer#render} 46 GuiHelper.runInEDT(new Runnable() { 47 @Override 48 public void run() { 49 cacheIdx++; 50 } 51 }); 41 52 } 42 53
Note:
See TracChangeset
for help on using the changeset viewer.