Skip to content

Commit

Permalink
Another safety check
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere authored and nyalldawson committed Sep 29, 2023
1 parent d69a677 commit 46c2d8b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/analysis/processing/qgsalgorithmpointstopaths.cpp
Expand Up @@ -249,13 +249,16 @@ QVariantMap QgsPointsToPathsAlgorithm::processAlgorithm( const QVariantMap &para
const QgsMultiPoint mp( *qgsgeometry_cast< const QgsMultiPoint * >( geom ) );
for ( auto pit = mp.const_parts_begin(); pit != mp.const_parts_end(); ++pit )
{
const QgsPoint point( *qgsgeometry_cast< const QgsPoint * >( *pit ) );
allPoints[ groupValue ] << qMakePair( orderValue, point );
const QgsPoint *point = qgsgeometry_cast< const QgsPoint * >( *pit );
if ( point )
{
allPoints[ groupValue ] << qMakePair( orderValue, *point );
}
}
}
else
{
const QgsPoint *point = qgsgeometry_cast< const QgsPoint * >(geom);
const QgsPoint *point = qgsgeometry_cast< const QgsPoint * >( geom );
if ( point )
{
allPoints[ groupValue ] << qMakePair( orderValue, *point );
Expand Down

0 comments on commit 46c2d8b

Please sign in to comment.