mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
#2181 : Summary Plot : Show Plot Data : Guard when curve data is incomplete
This commit is contained in:
1 parent
3e5a4945d1
commit
5ed072007d
1 file changed
+6
-1
@@ -325,7 +325,12 @@ QString RimSummaryPlot::asciiDataForPlotExport() const
|
||||
|
||||
for (size_t k = 0; k < allCurveData[i].size(); k++) // curves
|
||||
{
|
||||
out += "\t" + QString::number(allCurveData[i][k][j], 'g', 6);
|
||||
QString valueText;
|
||||
if (j < allCurveData[i][k].size())
|
||||
{
|
||||
valueText = QString::number(allCurveData[i][k][j], 'g', 6);
|
||||
}
|
||||
out += "\t" + valueText;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user