0001-libFMap-also-check-for-NULL-bounding-boxes.patch

Andrés Maneiro, 06/20/2013 06:48 PM

Download (1.64 KB)

View differences:

libFMap/src/com/iver/cit/gvsig/fmap/edition/VectorialEditableAdapter.java
566 566
			// expansionFile.invalidateRow(num);
567 567
		}
568 568
		System.err.println("Elimina una Row en la posici?n: " + index);
569
		// Se actualiza el ?ndice
569
		// Index is updated:
570
		// feat + geom + bounding box should not be null
571
		// Note: bounding box can be null for a FGeometryCollection geom 
572
		// which happens to not be null but has 0 geometries
570 573
		if (feat != null) {
571 574
		    IGeometry g = feat.getGeometry();
572 575
			if (g != null) {
573 576
			    Rectangle2D r = g.getBounds2D();
574
			    this.fmapSpatialIndex.delete(r, new Integer(index));
575
			    //System.out.println("Est? borrado : " + borrado);
576
			    //System.out.println("Index.lenght : " + this.index.size());
577
			    isFullExtentDirty = true;
577
			    if(r != null) {
578
				this.fmapSpatialIndex.delete(r, new Integer(index));
579
				isFullExtentDirty = true;
580
			    }
578 581
			}
579 582
		}
580 583
		setSelection(new FBitSet());
581
-