[Geometry checker] Fix incorrect QgsGeometryCheckerUtils::filter1DTypes

This commit is contained in:
Sandro Mani 2016-07-14 19:55:17 +02:00
parent f2f93d610d
commit a8c35a9e50

View File

@ -18,6 +18,7 @@
#include <qmath.h>
#include "qgsgeos.h"
#include "qgsgeometrycollectionv2.h"
#include "qgssurfacev2.h"
namespace QgsGeometryCheckerUtils
{
@ -43,7 +44,7 @@ namespace QgsGeometryCheckerUtils
QgsGeometryCollectionV2* geomCollection = static_cast<QgsGeometryCollectionV2*>( geom );
for ( int nParts = geom->partCount(), iPart = nParts - 1; iPart >= 0; --iPart )
{
if ( !dynamic_cast<QgsCurveV2*>( geomCollection->geometryN( iPart ) ) )
if ( !dynamic_cast<QgsSurfaceV2*>( geomCollection->geometryN( iPart ) ) )
{
geomCollection->removeGeometry( iPart );
}