Changeset 14001 in josm


Ignore:
Timestamp:
2018-07-05T01:03:14+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16459 - don't reindex empty ways

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataSet.java

    r13925 r14001  
    10131013
    10141014    void fireWayNodesChanged(Way way) {
    1015         store.reindexWay(way, Way::updatePosition, Relation::updatePosition);
     1015        if (way.getNodesCount() > 0) {
     1016            store.reindexWay(way, Way::updatePosition, Relation::updatePosition);
     1017        }
    10161018        fireEvent(new WayNodesChangedEvent(this, way));
    10171019    }
Note: See TracChangeset for help on using the changeset viewer.