Ignore:
Timestamp:
07.03.2010 14:41:05 (2 years ago)
Author:
Gubaer
Message:

Ouch, shouldn't have removed getData(). Fixes the previous commit.

File:
1 edited

Legend:

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

    r3092 r3093  
    118118        if (! isEnabled()) 
    119119            return; 
    120         Collection<OsmPrimitive> selection =getCurrentDataSet().getSelected(); 
    121         if (selection.size() == 0) { 
     120        Collection<OsmPrimitive> toUpdate =getData(); 
     121        if (toUpdate.size() == 0) { 
    122122            JOptionPane.showMessageDialog( 
    123123                    Main.parent, 
     
    128128            return; 
    129129        } 
    130         updatePrimitives(selection); 
     130        updatePrimitives(toUpdate); 
     131    } 
     132 
     133    public Collection<OsmPrimitive> getData() { 
     134        return getCurrentDataSet().getSelected(); 
    131135    } 
    132136} 
Note: See TracChangeset for help on using the changeset viewer.