Changeset 12968 in josm for trunk/src/org
- Timestamp:
- 2017-10-09T21:12:22+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java
r12966 r12968 79 79 styleSources = new ArrayList<>(); 80 80 Config.getPref().addPreferenceChangeListener(this); 81 MapPaintStyles.addMapPaintSylesUpdateListener(new MapPaintStyles.MapPaintSylesUpdateListener() {82 //TODO: Listen to wireframe map mode changes.83 @Override84 public void mapPaintStylesUpdated() {85 backgroundColorCache = null;86 }87 88 @Override89 public void mapPaintStyleEntryUpdated(int idx) {90 mapPaintStylesUpdated();91 }92 });93 81 } 94 82 … … 482 470 void clear() { 483 471 styleSources.clear(); 472 invalidate(); 484 473 } 485 474 … … 490 479 void add(StyleSource style) { 491 480 styleSources.add(style); 481 invalidate(); 492 482 } 493 483 … … 498 488 */ 499 489 boolean remove(StyleSource style) { 500 return styleSources.remove(style); 490 boolean result = styleSources.remove(style); 491 invalidate(); 492 return result; 501 493 } 502 494 … … 508 500 styleSources.clear(); 509 501 styleSources.addAll(sources); 502 invalidate(); 503 } 504 505 private void invalidate() { 506 backgroundColorCache = null; 510 507 } 511 508
Note:
See TracChangeset
for help on using the changeset viewer.