Revision 37596 branches/v2_0_0_prep/libraries/libFMap_controls/src/org/gvsig/fmap/mapcontrol/dal/feature/swing/FeatureSelectionModel.java
FeatureSelectionModel.java | ||
---|---|---|
62 | 62 |
private int anchor = -1; |
63 | 63 |
|
64 | 64 |
private int lead = -1; |
65 |
|
|
66 |
private int currentFirst = -1; |
|
67 |
private int currentLast = -1; |
|
65 | 68 |
|
66 | 69 |
/** |
67 | 70 |
* Creates a new {@link FeatureSelectionModel} with a |
... | ... | |
277 | 280 |
// values |
278 | 281 |
int first = (index0 <= index1) ? index0 : index1; |
279 | 282 |
int last = (index0 <= index1) ? index1 : index0; |
283 |
|
|
284 |
//If the new selection is not updated don't continue |
|
285 |
if ((currentFirst == first) && (currentLast == last)){ |
|
286 |
return; |
|
287 |
} |
|
288 |
currentFirst = first; |
|
289 |
currentLast = last; |
|
280 | 290 |
|
281 | 291 |
FeatureSelection selection = getFeatureSelection(); |
282 | 292 |
|
Also available in: Unified diff