Changeset 6711 in josm for trunk/src/org
- Timestamp:
- 2014-01-17T13:16:19+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/MapImage.java
r6378 r6711 37 37 38 38 private boolean temporary; 39 private Image disabledImg ;39 private Image disabledImgCache; 40 40 41 41 public MapImage(String name, StyleSource source) { … … 45 45 46 46 public Image getDisabled() { 47 if (disabledImg != null)48 return disabledImg;47 if (disabledImgCache != null) 48 return disabledImgCache; 49 49 if (img == null) 50 50 getImage(); // fix #7498 ? 51 disabledImg = GuiHelper.getDisabledImage(img);52 return disabledImg ;51 disabledImgCache = GuiHelper.getDisabledImage(img); 52 return disabledImgCache; 53 53 } 54 54 … … 76 76 } 77 77 if (temporary) { 78 disabledImgCache = null; 78 79 Main.map.mapView.preferenceChanged(null); // otherwise repaint is ignored, because layer hasn't changed 79 80 Main.map.mapView.repaint();
Note:
See TracChangeset
for help on using the changeset viewer.