From 56195a9df168de177087aa5f24e892e7dfb7e10c Mon Sep 17 00:00:00 2001 From: Jacky Volpes Date: Mon, 3 Jun 2024 16:20:27 +0200 Subject: [PATCH] Don't convert to MultiType a geometry that is already MultiType --- src/core/geometry/qgsgeometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/geometry/qgsgeometry.cpp b/src/core/geometry/qgsgeometry.cpp index dd76f7a7b142..869bb55d8441 100644 --- a/src/core/geometry/qgsgeometry.cpp +++ b/src/core/geometry/qgsgeometry.cpp @@ -1051,9 +1051,9 @@ Qgis::GeometryOperationResult QgsGeometry::addPartV2( QgsAbstractGeometry *part, else { detach(); + convertToMultiType(); } - convertToMultiType(); return QgsGeometryEditUtils::addPart( d->geometry.get(), std::move( p ) ); }