Ignore:
Timestamp:
2016-03-18T01:15:07+01:00 (4 years ago)
Author:
Don-vip
Message:

fix #12635 - sort members of new multipolygons (patch by michael2402)

File:
1 edited

Legend:

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

    r9668 r10010  
    3838import org.openstreetmap.josm.gui.dialogs.relation.DownloadRelationTask;
    3939import org.openstreetmap.josm.gui.dialogs.relation.RelationEditor;
     40import org.openstreetmap.josm.gui.dialogs.relation.sort.RelationSorter;
    4041import org.openstreetmap.josm.gui.util.GuiHelper;
    4142import org.openstreetmap.josm.tools.Pair;
     
    328329            addMembers(jway, rel, "inner");
    329330        }
     331
     332        if (clone == null) {
     333            rel.setMembers(RelationSorter.sortMembersByConnectivity(rel.getMembers()));
     334        }
     335
    330336        return rel;
    331337    }
Note: See TracChangeset for help on using the changeset viewer.