Changeset 3943 in josm
- Timestamp:
- 2011-03-02T17:20:51+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r3844 r3943 305 305 get/set functions calling this implicitely is preferred, so we can have 306 306 transparent cache handling in the future. */ 307 public void clearCached ()307 public void clearCachedStyle() 308 308 { 309 309 mappaintStyle = null; … … 1167 1167 1168 1168 private void keysChangedImpl(Map<String, String> originalKeys) { 1169 clearCached ();1169 clearCachedStyle(); 1170 1170 updateDirectionFlags(); 1171 1171 updateTagged(); … … 1367 1367 setChangesetId(other.changesetId); 1368 1368 } 1369 clearCached ();1369 clearCachedStyle(); 1370 1370 } 1371 1371 -
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r3844 r3943 41 41 boolean locked = writeLock(); 42 42 try { 43 for (RelationMember rm :this.members) {43 for (RelationMember rm : this.members) { 44 44 rm.getMember().removeReferrer(this); 45 rm.getMember().clearCachedStyle(); 45 46 } 46 47 … … 50 51 this.members = new RelationMember[0]; 51 52 } 52 for (RelationMember rm :this.members) {53 for (RelationMember rm : this.members) { 53 54 rm.getMember().addReferrer(this); 55 rm.getMember().clearCachedStyle(); 54 56 } 55 57 … … 79 81 members = newMembers; 80 82 member.getMember().addReferrer(this); 83 member.getMember().clearCachedStyle(); 81 84 fireMembersChanged(); 82 85 } finally { … … 94 97 members = newMembers; 95 98 member.getMember().addReferrer(this); 99 member.getMember().clearCachedStyle(); 96 100 fireMembersChanged(); 97 101 } finally { … … 113 117 if (originalMember.getMember() != member.getMember()) { 114 118 member.getMember().addReferrer(this); 119 member.getMember().clearCachedStyle(); 115 120 originalMember.getMember().removeReferrer(this); 121 originalMember.getMember().clearCachedStyle(); 116 122 fireMembersChanged(); 117 123 } -
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r3844 r3943 62 62 } 63 63 64 clearCached ();64 clearCachedStyle(); 65 65 fireNodesChanged(); 66 66 } finally { … … 323 323 if (isIncomplete()) 324 324 throw new IllegalStateException(tr("Cannot add node {0} to incomplete way {1}.", n.getId(), getId())); 325 clearCached ();325 clearCachedStyle(); 326 326 n.addReferrer(this); 327 327 Node[] newNodes = new Node[nodes.length + 1]; … … 352 352 throw new IllegalStateException(tr("Cannot add node {0} to incomplete way {1}.", n.getId(), getId())); 353 353 354 clearCached ();354 clearCachedStyle(); 355 355 n.addReferrer(this); 356 356 Node[] newNodes = new Node[nodes.length + 1];
Note:
See TracChangeset
for help on using the changeset viewer.