source: josm/trunk/test/data/regress/20325/update-no-command-warning.osm@ 17429

Last change on this file since 17429 was 17429, checked in by GerdP, 4 years ago

fix #20325: Update Multipolygon removes tags instead of moving them to relation

  • rewrite handling of update multipolygon cases
  • let removeTagsFromWaysIfNeeded() check if getDataset() returns null instead of checking isNew(). I assume it was always meant to work like this. JoinAreasAction works fine with that and I hope no plugin relies on the old behaviour.
  • add regression unit test and more unit tests to improve coverage
File size: 709 bytes
Line 
1<?xml version='1.0' encoding='UTF-8'?>
2<osm version='0.6' generator='JOSM'>
3 <node id='-103699' action='modify' visible='true' lat='52.89615136699' lon='8.35203543126' />
4 <node id='-103700' action='modify' visible='true' lat='52.91706439562' lon='8.35491004017' />
5 <node id='-103701' action='modify' visible='true' lat='52.90314155932' lon='8.37961371048' />
6 <way id='-106895' action='modify' visible='true'>
7 <nd ref='-103699' />
8 <nd ref='-103700' />
9 <nd ref='-103701' />
10 <nd ref='-103699' />
11 </way>
12 <relation id='-99800' action='modify' visible='true'>
13 <member type='way' ref='-106895' role='outer' />
14 <tag k='type' v='multipolygon' />
15 </relation>
16</osm>
Note: See TracBrowser for help on using the repository browser.