Ticket #5266: reverse_way.patch
File reverse_way.patch, 944 bytes (added by , 14 years ago) |
---|
-
src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java
124 124 String newKey = key; 125 125 String value = way.get(key); 126 126 String newValue = value; 127 String origValue; 127 128 128 129 if (key.equals("oneway")) { 129 130 if (OsmUtils.isReversed(value)) { … … 150 151 } 151 152 } 152 153 153 if (!key.equals(newKey) || !value.equals(newValue)) { 154 origValue=way.get(newKey); 155 if ( (!key.equals(newKey) && !origValue.equals(newValue)) || !value.equals(newValue)) { 154 156 tagCorrections.add(new TagCorrection(key, value, newKey, newValue)); 155 157 } 156 158 }