- Timestamp:
- 2013-10-01T22:38:13+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/NodeElemStyle.java
r6232 r6280 31 31 private Image enabledNodeIcon; 32 32 private Image disabledNodeIcon; 33 34 private boolean enabledNodeIconIsTemporary; 35 private boolean disabledNodeIconIsTemporary; 33 36 34 37 public enum SymbolShape { SQUARE, CIRCLE, TRIANGLE, PENTAGON, HEXAGON, HEPTAGON, OCTAGON, NONAGON, DECAGON } … … 241 244 final Image nodeIcon; 242 245 if (painter.isInactiveMode() || n.isDisabled()) { 243 if (disabledNodeIcon == null ) {246 if (disabledNodeIcon == null || disabledNodeIconIsTemporary) { 244 247 disabledNodeIcon = mapImage.getDisplayedNodeIcon(true); 248 disabledNodeIconIsTemporary = mapImage.isTemporary(); 245 249 } 246 250 nodeIcon = disabledNodeIcon; 247 251 } else { 248 if (enabledNodeIcon == null ) {252 if (enabledNodeIcon == null || enabledNodeIconIsTemporary) { 249 253 enabledNodeIcon = mapImage.getDisplayedNodeIcon(false); 254 enabledNodeIconIsTemporary = mapImage.isTemporary(); 250 255 } 251 256 nodeIcon = enabledNodeIcon;
Note:
See TracChangeset
for help on using the changeset viewer.