Skip to content

Commit

Permalink
Fix bug with replace way
Browse files Browse the repository at this point in the history
  • Loading branch information
tibnor committed Jun 7, 2015
1 parent 0a949f6 commit 27f8c5f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Replaces already existing object (id>0) with a new object (id<0).
*
* @author Zverik
* @author Torstein Bø
*/
public class ReplaceWayAction extends JosmAction {
private static final String TITLE = tr("Replace way");
Expand Down Expand Up @@ -55,7 +55,7 @@ public void actionPerformed(ActionEvent e) {
Way firstObject = (Way) selection.get(0);
Way secondObject = (Way) selection.get(1);
Map<String, String> keys;
if (firstObject.getId() < 0) {
if (firstObject.getId() <= 0) {
keys = firstObject.getKeys();
} else {
keys = secondObject.getKeys();
Expand Down

0 comments on commit 27f8c5f

Please sign in to comment.