Ignore:
Timestamp:
2017-10-09T21:57:25+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15008, see #15421 - add toString() methods to allow to report potentially incorrect selection events

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/event/SelectionEventManager.java

    r12636 r12970  
    178178            // If we would not do this, e.g. the move command would have a hard time tracking which layer
    179179            // the last moved selection was in.
    180             SelectionReplaceEvent event = new SelectionReplaceEvent(oldDataSet,
    181                     new HashSet<>(oldDataSet.getAllSelected()), Stream.empty());
    182             selectionChanged(event);
     180            selectionChanged(new SelectionReplaceEvent(oldDataSet,
     181                    new HashSet<>(oldDataSet.getAllSelected()), Stream.empty()));
    183182            oldDataSet.removeSelectionListener(this);
    184183        }
     
    187186            newDataSet.addSelectionListener(this);
    188187            // Fake a selection add
    189             SelectionReplaceEvent event = new SelectionReplaceEvent(newDataSet,
    190                     Collections.emptySet(), newDataSet.getAllSelected().stream());
    191             selectionChanged(event);
     188            selectionChanged(new SelectionReplaceEvent(newDataSet,
     189                    Collections.emptySet(), newDataSet.getAllSelected().stream()));
    192190        }
    193191    }
Note: See TracChangeset for help on using the changeset viewer.