Skip to content

Commit

Permalink
[Geometry checker] Fix incorrect QgsGeometryCheckerUtils::filter1DTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jul 14, 2016
1 parent f2f93d6 commit a8c35a9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <qmath.h>
#include "qgsgeos.h"
#include "qgsgeometrycollectionv2.h"
#include "qgssurfacev2.h"

namespace QgsGeometryCheckerUtils
{
Expand All @@ -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 );
}
Expand Down

0 comments on commit a8c35a9

Please sign in to comment.