mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2181 : Summary Plot : Show Plot Data : Guard when curve data is incomplete
This commit is contained in:
parent
3e5a4945d1
commit
5ed072007d
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user