Changes between Initial Version and Version 1 of Ticket #5823


Ignore:
Timestamp:
2016-08-21T11:52:13+02:00 (8 years ago)
Author:
mdk
Comment:

The problem is still open, except that the limit is now at 20 objects.

Do the following:

  • draw a closed way of 19 nodes.
  • select only the way and move it.

-> Warning dialogue with "You moved more than 20 elements. ..."

More than 20 means at least 21. How could this happens if I only select the way? Even if I add the selected nodes to the way, I get only 20. But a closed way contains the first node as the last node twice. So we reach 21.

Delete one of the nodes, so we got a closed way of 18 nodes. Moving the way cause no warning, but if you select at least one node of the closed way together with the way, you get the warning again while moving the way.

A simple solution would be to count only the nodes affected (so ignoring ways and relations). Just go threw the selected tree and collect all nodes in a HashSet. We could not really move a way or a relation in JOSM. We could only move nodes. If we move nodes which are part of a way, we don't really move the way as long as we luckily selected all nodes of the way. For me it would be more clear to talk and warn about moved nodes instead of moved objects.

Legend:

Unmodified
Added
Removed
Modified