Revision 40799 branches/v02_desarrollo/libraries/sld/temp/org.gvsig.sldsupport.lib.impl/src/main/java/org/gvsig/sldsupport/impl/sld1_0_0/parsing/FillElement.java

View differences:

FillElement.java
47 47
					if (SLDUtils.isStr(sp.getName(), SLDTags.FILL_ATTR)) {
48 48
						if (sp.getExpressionList().size() > 0) {
49 49
							// Using first item only
50
							resp.setFill(sp.getExpressionList().get(0));
50
							resp.setFillColor(sp.getExpressionList().get(0));
51 51
						}
52 52
					} else {
53 53
						if (SLDUtils.isStr(sp.getName(), SLDTags.FILLOPACITY_ATTR)) {
......
59 59
					}
60 60
					break;
61 61
				}
62
				break;
62
				/*
63
				 * Any other entity causes parsing error
64
				 */
65
				throw new SLDReadException(
66
						"Bad SLD file. Unexpected entity in fill element: " + name);
63 67
			case KXmlParser.END_TAG:
64 68
				break;
65 69
			case KXmlParser.TEXT:

Also available in: Unified diff