Skip to content
Permalink
Browse files

Fix crash when no candidates remain

  • Loading branch information
nyalldawson committed Dec 27, 2019
1 parent 1b5bc76 commit 9af3a720e3a847a0af875ed41a90ae5f75997577
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/pal/pal.cpp
@@ -349,6 +349,9 @@ std::unique_ptr<Problem> Pal::extract( const QgsRectangle &extent, const QgsGeom
}
}

if ( feat->candidates.empty() )
continue;

// calculate final costs
CostCalculator::finalizeCandidatesCosts( feat.get(), &obstacles, bbx, bby );

0 comments on commit 9af3a72

Please sign in to comment.
You can’t perform that action at this time.