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 ¶
249249 const QgsMultiPoint mp ( *qgsgeometry_cast< const QgsMultiPoint * >( geom ) );
250250 for ( auto pit = mp.const_parts_begin (); pit != mp.const_parts_end (); ++pit )
251251 {
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+ }
254257 }
255258 }
256259 else
257260 {
258- const QgsPoint *point = qgsgeometry_cast< const QgsPoint * >(geom);
261+ const QgsPoint *point = qgsgeometry_cast< const QgsPoint * >( geom );
259262 if ( point )
260263 {
261264 allPoints[ groupValue ] << qMakePair ( orderValue, *point );
You can’t perform that action at this time.
0 commit comments