Revision 44630 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/expressionevaluator/DefaultFeatureStoreElement2.java

View differences:

DefaultFeatureStoreElement2.java
243 243
        if( StringUtils.equalsIgnoreCase(DEFAULT_ELEMENT_NAME, this.store.getName()) ) {
244 244
            this.setName(this.store.getName());
245 245
        }
246
        if (this.getConfig().getPreviewSymbolTable()==null) { 
246 247
        Feature sampleFeature = this.store.getSampleFeature();
247
        if( sampleFeature!=null ) {
248
            FeatureSymbolTable featureSymbolTable = DALLocator.getDataManager().createFeatureSymbolTable();
249
            featureSymbolTable.setFeature(sampleFeature);
250
            this.getConfig().setPreviewSymbolTable(featureSymbolTable.createParent());
251
        }
248
           if( sampleFeature!=null ) {
249
                FeatureSymbolTable featureSymbolTable = DALLocator.getDataManager().createFeatureSymbolTable();
250
                featureSymbolTable.setFeature(sampleFeature);
251
                this.getConfig().setPreviewSymbolTable(featureSymbolTable.createParent());
252
            } 
253
        }     
252 254
        this.treemodel = new AdvancedAttributeSelectionTreeModel(this.store, Search.ALL_FILTER);
253 255
    }
254 256
}

Also available in: Unified diff