Skip to content

Commit b1518d2

Browse files
committedMar 8, 2023
Fix clang warning
1 parent 793915f commit b1518d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsmaphittest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ bool QgsMapHitTestTask::run()
387387
const std::size_t totalCount = mPreparedData.size();
388388
for ( auto &layerData : mPreparedData )
389389
{
390-
mFeedback->setProgress( static_cast< double >( layerIdx ) / totalCount * 100.0 );
390+
mFeedback->setProgress( static_cast< double >( layerIdx ) / static_cast< double >( totalCount ) * 100.0 );
391391
if ( mFeedback->isCanceled() )
392392
break;
393393

0 commit comments

Comments
 (0)
Please sign in to comment.