diff --git a/src/org/openstreetmap/josm/plugins/conflation/config/SettingsDialog.java b/src/org/openstreetmap/josm/plugins/conflation/config/SettingsDialog.java
index 1f42538..e3bc80d 100644
|
a
|
b
|
public class SettingsDialog extends ExtendedDialog {
|
| 616 | 616 | int numWays = 0; |
| 617 | 617 | int numRelations = 0; |
| 618 | 618 | |
| | 619 | // if subject and reference sets are the same, hint user that this must be wrong |
| | 620 | if (subjectLayer != null && subjectLayer == referenceLayer && ! subjectSelection.isEmpty()) { |
| | 621 | boolean identicalSet = (subjectSelection.size() == referenceSelection.size() && subjectSelection.containsAll(referenceSelection)); |
| | 622 | if (identicalSet) { |
| | 623 | JOptionPane.showMessageDialog(Main.parent, |
| | 624 | tr("Reference and subject sets should be different."), tr("Warning"), |
| | 625 | JOptionPane.WARNING_MESSAGE); |
| | 626 | } |
| | 627 | } |
| | 628 | |
| 619 | 629 | if (!subjectSelection.isEmpty()) { |
| 620 | 630 | for (OsmPrimitive p : subjectSelection) { |
| 621 | 631 | if (p instanceof Node) { |