Skip to content

Commit a8c35a9

Browse files
committedJul 14, 2016
[Geometry checker] Fix incorrect QgsGeometryCheckerUtils::filter1DTypes
1 parent f2f93d6 commit a8c35a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/plugins/geometry_checker/utils/qgsgeometrycheckerutils.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <qmath.h>
1919
#include "qgsgeos.h"
2020
#include "qgsgeometrycollectionv2.h"
21+
#include "qgssurfacev2.h"
2122

2223
namespace QgsGeometryCheckerUtils
2324
{
@@ -43,7 +44,7 @@ namespace QgsGeometryCheckerUtils
4344
QgsGeometryCollectionV2* geomCollection = static_cast<QgsGeometryCollectionV2*>( geom );
4445
for ( int nParts = geom->partCount(), iPart = nParts - 1; iPart >= 0; --iPart )
4546
{
46-
if ( !dynamic_cast<QgsCurveV2*>( geomCollection->geometryN( iPart ) ) )
47+
if ( !dynamic_cast<QgsSurfaceV2*>( geomCollection->geometryN( iPart ) ) )
4748
{
4849
geomCollection->removeGeometry( iPart );
4950
}

0 commit comments

Comments
 (0)
Please sign in to comment.