diff --git a/src/main/java/org/openstreetmap/josm/plugins/highwaynamemodification/HighwayNameListener.java b/src/main/java/org/openstreetmap/josm/plugins/highwaynamemodification/HighwayNameListener.java index 1e46308..d3fedcb 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/highwaynamemodification/HighwayNameListener.java +++ b/src/main/java/org/openstreetmap/josm/plugins/highwaynamemodification/HighwayNameListener.java @@ -43,8 +43,8 @@ public void primitivesRemoved(PrimitivesRemovedEvent event) { public void tagsChanged(TagsChangedEvent event) { final String[] oldNew = getOldNewName(event); if (oldNew.length == 2) { - String newName = oldNew[0]; - String oldName = oldNew[1]; + String newName = oldNew[1]; + String oldName = oldNew[0]; if (newName.equals(oldName)) return; performTagChanges(oldName, Collections.singleton(event));