Ticket #18675: 18675.patch
| File 18675.patch, 1.8 KB (added by , 6 years ago) |
|---|
-
src/org/openstreetmap/josm/actions/JoinAreasAction.java
62 62 private DataSet ds; 63 63 private final transient List<Relation> addedRelations = new LinkedList<>(); 64 64 private final boolean addUndoRedo; 65 private boolean tagConflictsResolved; 65 66 66 67 /** 67 68 * This helper class describes join areas action result. … … 484 485 485 486 private void clearFields() { 486 487 ds = null; 488 tagConflictsResolved = false; 487 489 cmdsCount = 0; 488 490 cmds.clear(); 489 491 addedRelations.clear(); … … 570 572 allWays.addAll(pol.innerWays); 571 573 } 572 574 ds.setSelected(allWays); 575 if (result.polygons.size() > 1 && tagConflictsResolved) { 576 new Notification(tr("Selected ways were not joined to a single area but have the same tags now." 577 + "<br>Please verify no errors have been introduced.")) 578 .setIcon(JOptionPane.INFORMATION_MESSAGE).setDuration(Notification.TIME_LONG) 579 .show(); 580 } 573 581 } 574 582 } else { 575 583 new Notification( … … 816 824 TagCollection wayTags = TagCollection.unionOfAllPrimitives(ways); 817 825 try { 818 826 cmds.addAll(CombinePrimitiveResolverDialog.launchIfNecessary(wayTags, ways, ways)); 827 tagConflictsResolved = (!cmds.isEmpty()); 819 828 commitCommands(marktr("Fix tag conflicts")); 820 829 return true; 821 830 } catch (UserCancelException ex) {
