Revision 35323 branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultFeatureSelection.java

View differences:

DefaultFeatureSelection.java
241 241
		if (feature == null) {
242 242
			return false;
243 243
		}
244

  
245
        // Use the selection data size as a small optimization for the most
246
        // common case, when nothing is selected and every feature is checked
247
        // while drawing or painting the table document.
248
        if (selectionData.isReversed()) {
249
            return selectionData.getSize() == 0
250
                || !selectionData.contains(feature.getReference());
251
        } else {
252
            return selectionData.getSize() > 0
253
                && selectionData.contains(feature.getReference());
254
        }
244
		return isSelected(feature.getReference());
255 245
	}
256 246

  
257 247
	public FeatureType getDefaultFeatureType() {

Also available in: Unified diff