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

View differences:

GraphicElement.java
67 67
					resp.setDisplacement(di);
68 68
					break;
69 69
				}
70
				break;
70
				/*
71
				 * Any other entity causes parsing error
72
				 */
73
				throw new SLDReadException(
74
						"Bad SLD file. Unexpected entity in graphic: " + name);
71 75
			case KXmlParser.END_TAG:
72 76
				break;
73 77
			case KXmlParser.TEXT:
......
78 82
		}
79 83

  
80 84
		parser.nextTag();
85
		/*
86
		 * Set default mark if no mark/graphic was set
87
		 */
88
		if (resp.getElementStack().size() == 0) {
89
			resp.setDefaultMark();
90
		}
81 91
		return resp;
82 92
	}	
83 93
}

Also available in: Unified diff