- Timestamp:
- 2016-01-31T12:57:34+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r9649 r9695 564 564 565 565 @Override 566 public void setModified(boolean modified) { 567 boolean locked = writeLock(); 568 try { 569 super.setModified(modified); 570 clearCachedStyle(); 571 } finally { 572 writeUnlock(locked); 573 } 574 } 575 576 @Override 566 577 public void setVisible(boolean visible) { 567 578 boolean locked = writeLock(); 568 579 try { 569 580 super.setVisible(visible); 581 clearCachedStyle(); 570 582 } finally { 571 583 writeUnlock(locked); … … 585 597 } 586 598 } 599 clearCachedStyle(); 587 600 } finally { 588 601 writeUnlock(locked); … … 607 620 } 608 621 622 /** 623 * Determines whether the primitive is selected 624 * @return whether the primitive is selected 625 * @see DataSet#isSelected(OsmPrimitive) 626 */ 609 627 public boolean isSelected() { 610 628 return dataSet != null && dataSet.isSelected(this);
Note:
See TracChangeset
for help on using the changeset viewer.