Changeset 7091 in josm for trunk


Ignore:
Timestamp:
2014-05-10T01:56:51+02:00 (6 years ago)
Author:
bastiK
Message:

fixed #9716 - Mappaint style for osm object not updated when tags change

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

Legend:

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

    r7005 r7091  
    535535    protected void keysChangedImpl(Map<String, String> originalKeys) {
    536536        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             }
     537        for (OsmPrimitive member : getMemberPrimitives()) {
     538            member.clearCachedStyle();
    542539        }
    543540    }
  • trunk/src/org/openstreetmap/josm/data/osm/Way.java

    r7005 r7091  
    88import java.util.HashSet;
    99import java.util.List;
     10import java.util.Map;
    1011import java.util.Set;
    1112
     
    734735        return false;
    735736    }
     737
     738    @Override
     739    protected void keysChangedImpl(Map<String, String> originalKeys) {
     740        super.keysChangedImpl(originalKeys);
     741        for (final Node n : nodes) {
     742            n.clearCachedStyle();
     743        }
     744    }
     745   
    736746}
Note: See TracChangeset for help on using the changeset viewer.