#5129 Fix depth ranges when curve units don't match display units

This commit is contained in:
Gaute Lindkvist
2019-11-29 10:02:34 +01:00
parent d736419fd4
commit d05328e184
6 changed files with 28 additions and 45 deletions

View File

@@ -251,7 +251,7 @@ public:
double minDepth = 0.0;
double maxDepth = 0.0;
firstCurveData->calculateDepthRange( RiaDefines::MEASURED_DEPTH, &minDepth, &maxDepth );
firstCurveData->calculateDepthRange( RiaDefines::MEASURED_DEPTH, firstCurveData->depthUnit(), &minDepth, &maxDepth );
lasFile->setStartDepth( minDepth );
lasFile->setStopDepth( maxDepth );