Revision 18482 trunk/libraries/libRaster/src/org/gvsig/raster/dataset/io/rmf/ClassSerializer.java

View differences:

ClassSerializer.java
189 189
	 */
190 190
	public ViewPortData parseViewPort(KXmlParser parser, String parseableTag, String[] bbox, String[] size, String proj) throws XmlPullParserException, IOException {
191 191
		boolean end = false;
192
		boolean begin = true;
192 193
		ViewPortData vp = new ViewPortData();
193 194
		vp.mat = new AffineTransform();
194 195
		
......
196 197
		while (!end) {
197 198
			switch(tag) {
198 199
			case KXmlParser.START_TAG:
199
				if(parser.getName() != null){
200
				if(parser.getName() != null) {
200 201
					if (parser.getName().compareTo(parseableTag) == 0) {
201 202
						String project = parserString(parser, proj, null);
202 203
						Extent ext = parseBoundingBox(parser, bbox[0], new String[]{bbox[1], bbox[2], bbox[3], bbox[4]});
......
205 206
						vp.pxSize = new Point2D.Double(dim.getX(), dim.getY());
206 207
						if(project != null && project != "")
207 208
							vp.setProjection(new ProjectionPool().get(project));
209
						begin = false;
210
					} else {
211
						if(begin) {//Condicion de salida
212
							return null;
213
						}
208 214
					}
209 215
				}		    	    
210 216
				break;

Also available in: Unified diff