Skip to content

Commit

Permalink
Make thread check in QgsPointCloudLayer::dataProvider() fatal
Browse files Browse the repository at this point in the history
After the last 3 commits there should be no place left that calls this
from a worker thread.
  • Loading branch information
dvdkon committed Jan 12, 2025
1 parent cfec4f9 commit 467bfd6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/pointcloud/qgspointcloudlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ QgsAbstractProfileGenerator *QgsPointCloudLayer::createProfileGenerator( const Q

QgsPointCloudDataProvider *QgsPointCloudLayer::dataProvider()
{
// BAD! 2D rendering of point clouds is NOT thread safe
QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
QGIS_PROTECT_QOBJECT_THREAD_ACCESS

return mDataProvider.get();
}
Expand Down

0 comments on commit 467bfd6

Please sign in to comment.