From bf2a42841d23c7d81599f923a140dec3b961efa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ko=C5=88a=C5=99=C3=ADk?= Date: Mon, 2 Dec 2024 22:32:59 +0100 Subject: [PATCH] Don't skip call in build without asserts --- src/core/pointcloud/qgscopcpointcloudindex.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/pointcloud/qgscopcpointcloudindex.cpp b/src/core/pointcloud/qgscopcpointcloudindex.cpp index 2f130eb127fb..227c5d3e4555 100644 --- a/src/core/pointcloud/qgscopcpointcloudindex.cpp +++ b/src/core/pointcloud/qgscopcpointcloudindex.cpp @@ -432,7 +432,8 @@ bool QgsCopcPointCloudIndex::hasNode( const QgsPointCloudNodeId &n ) const QgsPointCloudNode QgsCopcPointCloudIndex::getNode( const QgsPointCloudNodeId &id ) const { - Q_ASSERT( fetchNodeHierarchy( id ) ); + bool nodeFound = fetchNodeHierarchy( id ); + Q_ASSERT( nodeFound ); qint64 pointCount; {