Skip to content
Permalink
Browse files

[Geometry checker] Fix memory corruption in QgsGeometryTypeCheck fix …

…when converting to singleparts
  • Loading branch information
manisandro committed Oct 29, 2015
1 parent 65aa885 commit 20658509dc5bdac47e76bf03c570bae6198effbb
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/plugins/geometry_checker/checks/qgsgeometrytypecheck.cpp
@@ -74,7 +74,8 @@ void QgsGeometryTypeCheck::fixError( QgsGeometryCheckError* error, int method, i
changes[newFeature.id()].append( Change( ChangeFeature, ChangeAdded ) );
}
// Recycle feature for part 0
feature.setGeometry( new QgsGeometry( QgsGeomUtils::getGeomPart( geom, 0 ) ) );
feature.setGeometry( new QgsGeometry( QgsGeomUtils::getGeomPart( geom, 0 )->clone() ) );
mFeaturePool->updateFeature( feature );
changes[feature.id()].append( Change( ChangeFeature, ChangeChanged ) );
}
// Check if corresponding multi type is allowed

0 comments on commit 2065850

Please sign in to comment.
You can’t perform that action at this time.