Revision 6772 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/ClearSelectionExtension.java
ClearSelectionExtension.java | ||
---|---|---|
166 | 166 |
FLayer[] selected = ((View)view).getModel().getMapContext().getLayers().getActives(); |
167 | 167 |
if (selected.length == 1 && selected[0] instanceof FLyrVect){ |
168 | 168 |
try { |
169 |
return (((FLyrVect)selected[0]).getRecordset().getSelection().cardinality()>0); |
|
169 |
SelectableDataSource rs = ((FLyrVect)selected[0]).getRecordset(); |
|
170 |
if (rs != null) |
|
171 |
return (rs.getSelection().cardinality()>0); |
|
170 | 172 |
} catch (DriverException e) { |
171 | 173 |
e.printStackTrace(); |
172 | 174 |
} |
Also available in: Unified diff