Revision 40864 branches/v02_desarrollo/libraries/sld/temp/org.gvsig.sldconverter/org.gvsig.sldconverter.lib/org.gvsig.sldconverter.lib.impl/src/main/java/org/gvsig/sldconverter/impl/symbol/PolygonSymbolUtils.java

View differences:

PolygonSymbolUtils.java
79 79
		Color color = sym.getOutline().getColor();
80 80
		double w = sym.getOutline().getLineWidth();
81 81
		SLDStroke stro = new SLDStroke();
82
		String colhex = BasicUtils.toHexadecimal(color, 6, "#");
83
		if (colhex != null) {
84
			stro.setColor(new SLDLiteral(colhex));
82
		if (color != null) {
83
			stro.setColor(color);
85 84
		}
86 85
		stro.setWidth(new SLDLiteral(BasicUtils.df.format(w)));
87 86
		// =================
88 87
		color = sym.getColor();
89
		colhex = BasicUtils.toHexadecimal(color, 6, "#");
90 88
		SLDFill fill = new SLDFill();
91
		if (colhex != null) {
92
			fill.setFillColor(new SLDLiteral(colhex));
89
		if (color != null) {
90
			fill.setFillColor(color);
93 91
		}
94 92
		// =================
95 93
		SLDPolygonSymbol resp = new SLDPolygonSymbol();

Also available in: Unified diff