Ignore:
Timestamp:
16.02.2010 09:30:28 (2 years ago)
Author:
jttt
Message:

Fix #4406 tags disapear: merging node with ID:0 and tag to existing node without tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolverModel.java

    r2990 r2996  
    182182    } 
    183183 
     184    //TODO Should this method work with all decisions or only with displayed decisions? For MergeNodes it should be 
     185    //all decisions, but this method is also used on other places, so I've made new method just for MergeNodes 
    184186    public TagCollection getResolution() { 
    185187        TagCollection tc = new TagCollection(); 
    186188        for (String key: displayedKeys) { 
    187189            tc.add(decisions.get(key).getResolution()); 
     190        } 
     191        return tc; 
     192    } 
     193 
     194    public TagCollection getAllResolutions() { 
     195        TagCollection tc = new TagCollection(); 
     196        for (MultiValueResolutionDecision value: decisions.values()) { 
     197            tc.add(value.getResolution()); 
    188198        } 
    189199        return tc; 
Note: See TracChangeset for help on using the changeset viewer.