Changeset 5676 in josm for trunk


Ignore:
Timestamp:
2013-01-27T15:35:19+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #8346 - Multipolygon paint style not updated on tag change

Location:
trunk/src/org/openstreetmap/josm/data/osm
Files:
2 edited

Legend:

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

    r5608 r5676  
    794794
    795795    @Override
    796     protected final void keysChangedImpl(Map<String, String> originalKeys) {
     796    protected void keysChangedImpl(Map<String, String> originalKeys) {
    797797        clearCachedStyle();
    798798        if (dataSet != null) {
  • trunk/src/org/openstreetmap/josm/data/osm/Relation.java

    r5613 r5676  
    77import java.util.HashSet;
    88import java.util.List;
     9import java.util.Map;
    910import java.util.Set;
    1011
     
    530531        return ret;
    531532    }
     533
     534    @Override
     535    protected void keysChangedImpl(Map<String, String> originalKeys) {
     536        super.keysChangedImpl(originalKeys);
     537        // fix #8346 - Clear style cache for multipolygon members after a tag change
     538        if (isMultipolygon()) {
     539            for (OsmPrimitive member : getMemberPrimitives()) {
     540                member.clearCachedStyle();
     541            }
     542        }
     543    }
    532544}
Note: See TracChangeset for help on using the changeset viewer.