Changeset 12209 in josm for trunk/src


Ignore:
Timestamp:
2017-05-18T23:01:18+02:00 (8 years ago)
Author:
michael2402
Message:

Reverse way action: Do not fire selection updated to repaint.

The undo/redo system fires a changed event that triggers a repaint.

File:
1 edited

Legend:

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

    r10716 r12209  
    8888        }
    8989
    90         boolean propertiesUpdated = false;
    9190        Collection<Command> c = new LinkedList<>();
    9291        for (Way w : sel) {
     
    9998            }
    10099            c.addAll(revResult.getCommands());
    101             propertiesUpdated |= !revResult.getTagCorrectionCommands().isEmpty();
    102100        }
    103101        Main.main.undoRedo.add(new SequenceCommand(tr("Reverse ways"), c));
    104         // FIXME: This should be handled by undoRedo.
    105         if (propertiesUpdated) {
    106             ds.fireSelectionChanged();
    107         }
    108102    }
    109103
Note: See TracChangeset for help on using the changeset viewer.