mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[Geometry checker] Fix incorrect QgsGeometryCheckerUtils::filter1DTypes
This commit is contained in:
parent
f2f93d610d
commit
a8c35a9e50
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user