diff --git a/alg/viewshed/viewshed_executor.cpp b/alg/viewshed/viewshed_executor.cpp index 01a9d5e32658..83c9669b9346 100644 --- a/alg/viewshed/viewshed_executor.cpp +++ b/alg/viewshed/viewshed_executor.cpp @@ -136,7 +136,7 @@ ViewshedExecutor::ViewshedExecutor(GDALRasterBand &srcBand, // calculate the height adjustment factor. double ViewshedExecutor::calcHeightAdjFactor() { - std::lock_guard g(iMutex); + std::lock_guard g(oMutex); const OGRSpatialReference *poDstSRS = m_dstBand.GetDataset()->GetSpatialRef();