Ignore:
Timestamp:
2009-11-07T18:01:20+01:00 (14 years ago)
Author:
jttt
Message:

Remove some unnecessary calls to fireSelectionChanged()

File:
1 edited

Legend:

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

    r2348 r2402  
    520520
    521521        // plain clicks with no modifiers clear the selection
    522         if (!ctrl && !shift)
     522        if (!ctrl && !shift) {
    523523            ds.clearSelection();
     524        }
    524525
    525526        if (ctrl) {
     
    527528            // but Ctrl on an *area* just clears those items
    528529            // out of the selection.
    529             if (area)
     530            if (area) {
    530531                ds.clearSelection(selectionList);
    531             else
     532            } else {
    532533                ds.toggleSelected(selectionList);
     534            }
    533535        } else {
    534536            // This is either a plain click (which means we
     
    538540            ds.addSelected(selectionList);
    539541        }
    540         ds.fireSelectionChanged();
    541542        Main.map.mapView.repaint();
    542543    }
Note: See TracChangeset for help on using the changeset viewer.