[josm-dev] Multiple use of ChangeCommand for one way in one batch

Marián Kyral mkyral at email.cz
Wed Oct 1 20:42:38 UTC 2014


Hi,

Why I can't do this:
cmds.add(new ChangeCommand(origWay, firstUpdateOfWay,));
cmds.add(new ChangeCommand(firstUpdateOfWay, secondUpdateOfWay));
cmds.add(new ChangeCommand(secondUpdateOfWay, thirdUpdateOfWay));

Currently, only first command is performed. Any later updates of the way are
silently rejected (or not applied).

I have to change it to:
cmds.add(new ChangeCommand(origWay, updatedWay1));
cmds.add(new ChangeCommand(origWay, secondUpdateOfWay));
cmds.add(new ChangeCommand(origWay, thirdUpdateOfWay));

In that way, all changes are performed. But this means that I have to always
remember the original way and it limiting me.

Is this a bug or feature?

Thanks,
Marián



More information about the josm-dev mailing list