Skip to content

Commit

Permalink
Fix crash when running xyz tiles algorithms and thread count >
Browse files Browse the repository at this point in the history
tiles required
  • Loading branch information
nyalldawson committed Oct 19, 2023
1 parent 9bbae4c commit dd9c62b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmxyztiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ bool QgsXyzTilesBaseAlgorithm::prepareAlgorithm( const QVariantMap &parameters,

void QgsXyzTilesBaseAlgorithm::startJobs()
{
while ( mRendererJobs.size() < mThreadsNumber )
while ( mRendererJobs.size() < mThreadsNumber && !mMetaTiles.empty() )
{
MetaTile metaTile = mMetaTiles.takeFirst();

Expand Down

0 comments on commit dd9c62b

Please sign in to comment.