From 0d85289e7d132b1dd0a904a73885615cfc846337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rnar=20Grip=20Fj=C3=A6r?= Date: Thu, 15 Jun 2017 13:36:23 +0200 Subject: [PATCH] #1563 Show plot data in order from top to bottom --- ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp b/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp index 6db5e7711b..ab8c63680b 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp @@ -442,9 +442,9 @@ QString RimWellLogPlot::asciiDataForPlotExport() const } - for (int i = static_cast(curveDepths.size()) - 1; i >= 0; i--) + for (size_t i = 0; i < curveDepths.size(); ++i) { - if (i == static_cast(curveDepths.size()) - 1) + if (i == 0) { if (depthType() == CONNECTION_NUMBER) out += "Connection"; else if (depthType() == MEASURED_DEPTH) out += "MD "; @@ -453,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; }