Changeset 9695 in josm


Ignore:
Timestamp:
2016-01-31T12:57:34+01:00 (4 years ago)
Author:
simon04
Message:

see #12457 - MapCSS "modified" not updating after uploading changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r9649 r9695  
    564564
    565565    @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
    566577    public void setVisible(boolean visible) {
    567578        boolean locked = writeLock();
    568579        try {
    569580            super.setVisible(visible);
     581            clearCachedStyle();
    570582        } finally {
    571583            writeUnlock(locked);
     
    585597                }
    586598            }
     599            clearCachedStyle();
    587600        } finally {
    588601            writeUnlock(locked);
     
    607620    }
    608621
     622    /**
     623     * Determines whether the primitive is selected
     624     * @return whether the primitive is selected
     625     * @see DataSet#isSelected(OsmPrimitive)
     626     */
    609627    public boolean isSelected() {
    610628        return dataSet != null && dataSet.isSelected(this);
Note: See TracChangeset for help on using the changeset viewer.