Changeset 11117 in josm


Ignore:
Timestamp:
2016-10-11T19:44:52+02:00 (8 years ago)
Author:
simon04
Message:

fix #13591 - Change in multipolygon is not recognized by MultipolygonCache (patch by Gerd Petermann)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/MultipolygonCache.java

    r11038 r11117  
    212212                        pd.nodeMoved((NodeMovedEvent) event);
    213213                    } else if (event instanceof WayNodesChangedEvent) {
     214                        final boolean oldClosedStatus = pd.isClosed();
    214215                        pd.wayNodesChanged((WayNodesChangedEvent) event);
     216                        if (pd.isClosed() != oldClosedStatus) {
     217                            removeMultipolygonFrom(r, maps); // see ticket #13591
     218                            return;
     219                        }
    215220                    }
    216221                }
Note: See TracChangeset for help on using the changeset viewer.