Ignore:
File:
1 edited

Legend:

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

    r17 r23  
    55import java.util.Collection;
    66
    7 import org.openstreetmap.josm.data.osm.DataSet;
     7import org.openstreetmap.josm.Main;
    88import org.openstreetmap.josm.data.osm.OsmPrimitive;
    99import org.openstreetmap.josm.gui.MapFrame;
     
    8787                        return; // not allowed together
    8888
    89                 DataSet ds = mv.getActiveDataSet();
    90 
    9189                if (!ctrl && !shift)
    92                         ds.clearSelection(); // new selection will replace the old.
     90                        Main.main.ds.clearSelection(); // new selection will replace the old.
    9391
    9492                Collection<OsmPrimitive> selectionList = selectionManager.getObjectsInRectangle(r,alt);
    9593                for (OsmPrimitive osm : selectionList)
    96                         osm.setSelected(!ctrl, ds);
     94                        osm.setSelected(!ctrl);
    9795                mv.repaint();
    9896        }
    99 
    100         @Override
    101         protected boolean isEditMode() {
    102                 return false;
    103         }
    10497}
Note: See TracChangeset for help on using the changeset viewer.