File tree 1 file changed +2
-2
lines changed
src/analysis/vector/geometry_checker
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -302,12 +302,12 @@ QList<const QgsLineString *> QgsGeometryCheckerUtils::polygonRings( const QgsPol
302
302
303
303
void QgsGeometryCheckerUtils::filter1DTypes ( QgsAbstractGeometry *geom )
304
304
{
305
- if ( dynamic_cast <QgsGeometryCollection *>( geom ) )
305
+ if ( qgsgeometry_cast <QgsGeometryCollection *>( geom ) )
306
306
{
307
307
QgsGeometryCollection *geomCollection = static_cast <QgsGeometryCollection *>( geom );
308
308
for ( int nParts = geom->partCount (), iPart = nParts - 1 ; iPart >= 0 ; --iPart )
309
309
{
310
- if ( !dynamic_cast <QgsSurface *>( geomCollection->geometryN ( iPart ) ) )
310
+ if ( !qgsgeometry_cast <QgsSurface *>( geomCollection->geometryN ( iPart ) ) )
311
311
{
312
312
geomCollection->removeGeometry ( iPart );
313
313
}
You can’t perform that action at this time.
0 commit comments