Changeset 13067 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2017-11-01T18:30:21+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #15507 - Update multipolygon action no longer works (regression from r12726)

File:
1 edited

Legend:

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

    r12846 r13067  
    450450                }
    451451            }
    452             if (fixed && !relation.isNew())
    453                 commands.add(new ChangeCommand(relation, r2));
     452            if (fixed && !relation.isNew()) {
     453                DataSet ds = relation.getDataSet();
     454                if (ds == null) {
     455                    ds = MainApplication.getLayerManager().getEditDataSet();
     456                }
     457                commands.add(new ChangeCommand(ds, relation, r2));
     458            }
    454459        }
    455460
Note: See TracChangeset for help on using the changeset viewer.