Changeset 11222 in josm for trunk


Ignore:
Timestamp:
2016-11-06T13:29:17+01:00 (3 years ago)
Author:
Don-vip
Message:

fix #13923 - Select the relation instead open ends with "Multipolygon is not closed" (patch by Gerd Petermann)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java

    r11191 r11222  
    403403
    404404    private static Collection<? extends OsmPrimitive> addRelationIfNeeded(Relation r, Collection<? extends OsmPrimitive> primitives) {
    405         // Fix #8212 : if the error references only incomplete primitives,
    406405        // add multipolygon in order to let user select something and fix the error
    407406        if (!primitives.contains(r)) {
    408             for (OsmPrimitive p : primitives) {
    409                 if (!p.isIncomplete()) {
    410                     return primitives;
    411                 }
    412             }
    413407            // Diamond operator does not work with Java 9 here
    414408            @SuppressWarnings("unused")
Note: See TracChangeset for help on using the changeset viewer.