File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -249,13 +249,16 @@ QVariantMap QgsPointsToPathsAlgorithm::processAlgorithm( const QVariantMap ¶
249
249
const QgsMultiPoint mp ( *qgsgeometry_cast< const QgsMultiPoint * >( geom ) );
250
250
for ( auto pit = mp.const_parts_begin (); pit != mp.const_parts_end (); ++pit )
251
251
{
252
- const QgsPoint point ( *qgsgeometry_cast< const QgsPoint * >( *pit ) );
253
- allPoints[ groupValue ] << qMakePair ( orderValue, point );
252
+ const QgsPoint *point = qgsgeometry_cast< const QgsPoint * >( *pit );
253
+ if ( point )
254
+ {
255
+ allPoints[ groupValue ] << qMakePair ( orderValue, *point );
256
+ }
254
257
}
255
258
}
256
259
else
257
260
{
258
- const QgsPoint *point = qgsgeometry_cast< const QgsPoint * >(geom);
261
+ const QgsPoint *point = qgsgeometry_cast< const QgsPoint * >( geom );
259
262
if ( point )
260
263
{
261
264
allPoints[ groupValue ] << qMakePair ( orderValue, *point );
You can’t perform that action at this time.
0 commit comments