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 20, 2023
1 parent a521332 commit 812af7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmxyztiles.cpp
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 812af7f

Please sign in to comment.