Revision 496 org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.lib/org.gvsig.vectorediting.lib.prov/org.gvsig.vectorediting.lib.prov.split/src/main/java/org/gvsig/vectorediting/lib/prov/split/SplitEditingProvider.java

View differences:

SplitEditingProvider.java
213 213

  
214 214
                    if (intersection == null
215 215
                        || (!intersection.getGeometryType().isTypeOf(POINT)
216
                            && !intersection.getGeometryType().isTypeOf(MULTIPOINT)
217
                            && !intersection.getGeometryType().isTypeOf(CURVE)
218
                            && !intersection.getGeometryType().isTypeOf(MULTICURVE))) {
216
                        && !intersection.getGeometryType().isTypeOf(MULTIPOINT)
217
                        && !intersection.getGeometryType().isTypeOf(CURVE)
218
                        && !intersection.getGeometryType().isTypeOf(MULTICURVE))) {
219 219
                        throw new VectorEditingException();
220 220
                    }
221 221
                }
......
225 225
            return false;
226 226
        }
227 227
    }
228

  
228
    
229 229
    public Geometry finish() throws FinishServiceException {
230 230
        return null;
231 231
    }
......
311 311
                            }
312 312
                        }
313 313
                        
314
                        // Not splitted geometries should be saved as multigeometry
315
                        copyAlfanumericDataAndInsert(multiNoSplitted,
316
                            feature);
314
                        if(multiNoSplitted.getPrimitivesNumber() > 0){
315
                            // Not splitted geometries should be saved as multigeometry
316
                            copyAlfanumericDataAndInsert(multiNoSplitted,
317
                                feature);
318
                        }
317 319
                    }
318 320
                    
319 321
                    editingProviderServices.deleteFeatureFromFeatureStore(

Also available in: Unified diff