Changeset 16048 in josm for trunk/src


Ignore:
Timestamp:
2020-03-06T10:37:17+01:00 (5 years ago)
Author:
GerdP
Message:

fix #18744: "Join Overlapping Areas" shows confusing dialogs when merging inner and outer ways of a multipolygon
Refuse to join ways when one is an outer way and at least one is an inner way of the same multipolygon relation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java

    r15890 r16048  
    15341534            innerWays.retainAll(selectedWays);
    15351535
     1536            if (!innerWays.isEmpty() && selectedWays.contains(outerWay)) {
     1537                // see #18744
     1538                new Notification(tr("Cannot join inner and outer ways of a multipolygon"))
     1539                        .setIcon(JOptionPane.INFORMATION_MESSAGE)
     1540                        .show();
     1541                return null;
     1542            }
     1543
    15361544            if (processedOuterWays.contains(outerWay)) {
    15371545                new Notification(
Note: See TracChangeset for help on using the changeset viewer.