diff --git a/src/core/qgspointlocator.cpp b/src/core/qgspointlocator.cpp index 57cd030bed4..bf04a6ff185 100644 --- a/src/core/qgspointlocator.cpp +++ b/src/core/qgspointlocator.cpp @@ -1160,11 +1160,14 @@ bool QgsPointLocator::rebuildIndex( int maxFeaturesToIndex ) } QgsPointLocator_Stream stream( dataList ); - try { + try + { mRTree.reset( RTree::createAndBulkLoadNewRTree( RTree::BLM_STR, stream, *mStorage, fillFactor, indexCapacity, - leafCapacity, dimension, variant, indexId ) ); - } catch (const std::exception& e) { - QgsDebugError(QStringLiteral("An exception has occurred during the creation of RTree: %1").arg(e.what())); + leafCapacity, dimension, variant, indexId ) ); + } + catch ( const std::exception &e ) + { + QgsDebugError( QStringLiteral( "An exception has occurred during the creation of RTree: %1" ).arg( e.what() ) ); destroyIndex(); return false; }