Skip to content

Commit

Permalink
Deactivate progress bar when no nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Sep 29, 2023
1 parent dece451 commit cc15284
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/pointcloud/qgspointcloudlayerprofilegenerator.cpp
Expand Up @@ -470,6 +470,10 @@ bool QgsPointCloudLayerProfileGenerator::generateProfile( const QgsProfileGenera
}
double rootErrorPixels = rootErrorInMapCoordinates / mapUnitsPerPixel; // in pixels
const QVector<IndexedPointCloudNode> nodes = traverseTree( pc, pc->root(), maximumErrorPixels, rootErrorPixels, context.elevationRange() );
if ( nodes.empty() )
{
return false;
}

const double rootErrorInLayerCoordinates = rootNodeExtentLayerCoords.width() / pc->span();
const double maxErrorInMapCoordinates = maximumErrorPixels * mapUnitsPerPixel;
Expand Down

0 comments on commit cc15284

Please sign in to comment.