We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent f2f93d6 commit a8c35a9Copy full SHA for a8c35a9
src/plugins/geometry_checker/utils/qgsgeometrycheckerutils.cpp
@@ -18,6 +18,7 @@
18
#include <qmath.h>
19
#include "qgsgeos.h"
20
#include "qgsgeometrycollectionv2.h"
21
+#include "qgssurfacev2.h"
22
23
namespace QgsGeometryCheckerUtils
24
{
@@ -43,7 +44,7 @@ namespace QgsGeometryCheckerUtils
43
44
QgsGeometryCollectionV2* geomCollection = static_cast<QgsGeometryCollectionV2*>( geom );
45
for ( int nParts = geom->partCount(), iPart = nParts - 1; iPart >= 0; --iPart )
46
- if ( !dynamic_cast<QgsCurveV2*>( geomCollection->geometryN( iPart ) ) )
47
+ if ( !dynamic_cast<QgsSurfaceV2*>( geomCollection->geometryN( iPart ) ) )
48
49
geomCollection->removeGeometry( iPart );
50
}
0 commit comments