We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9cf3e7f + 03faafa commit d69c325Copy full SHA for d69c325
python/plugins/fTools/tools/doMergeShapes.py
@@ -317,8 +317,9 @@ def run( self ):
317
mergedAttrs[ fieldMap[shapeIndex][fieldIndex] ] = v
318
fieldIndex += 1
319
320
- inGeom = QgsGeometry( inFeat.geometry() )
321
- outFeat.setGeometry( inGeom )
+ if inFeat.geometry() is not None:
+ inGeom = QgsGeometry( inFeat.geometry() )
322
+ outFeat.setGeometry( inGeom )
323
outFeat.setAttributes( mergedAttrs )
324
writer.addFeature( outFeat )
325
self.emit( SIGNAL( "featureProcessed()" ) )
0 commit comments