Changeset 3199 in josm
- Timestamp:
- 2010-04-22T23:39:51+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Filters.java
r3178 r3199 39 39 Collection<OsmPrimitive> seld = new LinkedList<OsmPrimitive> (); 40 40 Collection<OsmPrimitive> self = new LinkedList<OsmPrimitive> (); 41 if(Main.main.getCurrentDataSet() == null)return; 42 Main.main.getCurrentDataSet().setFiltered(); 43 Main.main.getCurrentDataSet().setDisabled(); 41 DataSet ds = Main.main.getCurrentDataSet(); 42 if(ds == null)return; 43 ds.setFiltered(); 44 ds.setDisabled(); 44 45 for (Filter flt : filters){ 45 46 if(flt.enable){ … … 60 61 disabledCount = seld.size() - self.size(); 61 62 hiddenCount = self.size(); 62 Main.main.getCurrentDataSet().setFiltered(self); 63 Main.main.getCurrentDataSet().setDisabled(seld); 63 ds.setFiltered(self); 64 ds.setDisabled(seld); 65 66 ds.clearSelection(seld); 67 64 68 Main.map.mapView.repaint(); 65 69 }
Note:
See TracChangeset
for help on using the changeset viewer.