Skip to content

Commit

Permalink
Don't convert to MultiType a geometry that is already MultiType
Browse files Browse the repository at this point in the history
  • Loading branch information
Djedouas authored and lbartoletti committed Jun 3, 2024
1 parent 89cbf74 commit 56195a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1051,9 +1051,9 @@ Qgis::GeometryOperationResult QgsGeometry::addPartV2( QgsAbstractGeometry *part,
else
{
detach();
convertToMultiType();
}

convertToMultiType();
return QgsGeometryEditUtils::addPart( d->geometry.get(), std::move( p ) );
}

Expand Down

0 comments on commit 56195a9

Please sign in to comment.