mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge branch 'master' into dev
This commit is contained in:
@@ -426,7 +426,14 @@ QString RimWellLogPlot::asciiDataForPlotExport() const
|
||||
|
||||
if (curveNames.size() == 1)
|
||||
{
|
||||
curveDepths = curveData->measuredDepthPlotValues(RiaDefines::UNIT_NONE);
|
||||
if (depthType() == TRUE_VERTICAL_DEPTH)
|
||||
{
|
||||
curveDepths = curveData->trueDepthPlotValues(depthUnit());
|
||||
}
|
||||
else
|
||||
{
|
||||
curveDepths = curveData->measuredDepthPlotValues(depthUnit());
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<double> xPlotValues = curveData->xPlotValues();
|
||||
@@ -435,9 +442,9 @@ QString RimWellLogPlot::asciiDataForPlotExport() const
|
||||
}
|
||||
|
||||
|
||||
for (int i = static_cast<int>(curveDepths.size()) - 1; i >= 0; i--)
|
||||
for (size_t i = 0; i < curveDepths.size(); ++i)
|
||||
{
|
||||
if (i == static_cast<int>(curveDepths.size()) - 1)
|
||||
if (i == 0)
|
||||
{
|
||||
if (depthType() == CONNECTION_NUMBER) out += "Connection";
|
||||
else if (depthType() == MEASURED_DEPTH) out += "MD ";
|
||||
@@ -446,7 +453,7 @@ QString RimWellLogPlot::asciiDataForPlotExport() const
|
||||
for (QString name : curveNames) out += " \t" + name;
|
||||
out += "\n";
|
||||
}
|
||||
else if (curveDepths[i] == curveDepths[i+1])
|
||||
else if (curveDepths[i] == curveDepths[i-1])
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user