Changeset 15143 in josm


Ignore:
Timestamp:
2019-05-30T14:20:06+02:00 (5 years ago)
Author:
GerdP
Message:

fix #17767 (again)

  • make sure that we don't create multipolygon in update mode
  • ignore filtered relations when only ways are selected
File:
1 edited

Legend:

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

    r15137 r15143  
    161161                : null;
    162162
     163        if (update && multipolygonRelation == null)
     164            return;
    163165        // download incomplete relation or incomplete members if necessary
    164166        OsmDataLayer editLayer = getLayerManager().getEditLayer();
     
    188190            for (final Way w : selectedWays) {
    189191                for (OsmPrimitive r : w.getReferrers()) {
    190                     if (r != candidate && r instanceof Relation && r.hasTag("type", "multipolygon")) {
     192                    if (r != candidate && !r.isDisabled() && r instanceof Relation && r.hasTag("type", "multipolygon")) {
    191193                        if (candidate != null)
    192194                            return null; // found another multipolygon relation
Note: See TracChangeset for help on using the changeset viewer.