Revision 6530

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/ThemeToAnnotationExtension.java
222 222
    				FLyrVect lv=(FLyrVect)layers[0];
223 223
    				ReadableVectorial src = lv.getSource();
224 224
    				if (src == null) return false;
225
    				SelectableDataSource sds=lv.getSource().getRecordset();
225
    					
226 226
    				try {
227
    					SelectableDataSource sds=lv.getSource().getRecordset();
227 228
						if (sds.getFieldCount()>0)
228 229
							return true;
229 230
					} catch (DriverException e) {
230 231
						return false;
232
					} catch (Exception e) {
233
						return false;
231 234
					}
232 235
    			}
233 236
    		}

Also available in: Unified diff