Revision 45526 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.swing/org.gvsig.symbology.swing.api/src/main/java/org/gvsig/app/gui/styling/SymbolEditor.java

View differences:

SymbolEditor.java
51 51
import org.gvsig.andami.ui.mdiManager.IWindow;
52 52
import org.gvsig.andami.ui.mdiManager.WindowInfo;
53 53
import org.gvsig.app.gui.JComboBoxUnits;
54
import org.gvsig.fmap.dal.feature.Feature;
54 55
import org.gvsig.fmap.dal.feature.FeatureStore;
55 56
import org.gvsig.fmap.geom.Geometry.SUBTYPES;
56 57
import org.gvsig.fmap.geom.GeometryLocator;
......
423 424
	 */
424 425
	private SymbolPreviewer getSymbolPreviewer() {
425 426
		if (symbolPreview == null) {
427
                    if(this.featureStore!= null) {
428
			symbolPreview = new SymbolPreviewer(this.featureStore.getSampleFeature());
429
                    } else {
426 430
			symbolPreview = new SymbolPreviewer();
427
			symbolPreview.setPreferredSize(new Dimension(150, 100));
428

  
431
                    }
432
                    symbolPreview.setPreferredSize(new Dimension(150, 100));
429 433
		}
430 434
		return symbolPreview;
431 435
	}
436
        
432 437
	/**
433 438
	 * Initializes the type and units panel where two Jcomboboxes will be placed
434 439
	 * in order to change the type and the units used in the map.

Also available in: Unified diff