Skip to content
Permalink
Browse files

[Geometry checker] Fix incorrect QgsGeometryCheckerUtils::filter1DTypes

  • Loading branch information
manisandro committed Jul 14, 2016
1 parent f2f93d6 commit a8c35a9e5083bfd7f08c088f7fd5dafb002c02db
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/plugins/geometry_checker/utils/qgsgeometrycheckerutils.cpp
@@ -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 );
}

0 comments on commit a8c35a9

Please sign in to comment.
You can’t perform that action at this time.