#4251 Saturation Pressure Plots: Make sure result is loaded before accessing data

This commit is contained in:
Magne Sjaastad 2019-04-02 12:41:26 +02:00
parent 738fc8e283
commit ab7dd90483

View File

@ -64,6 +64,8 @@ std::vector<RimSaturationPressurePlot*>
RigEclipseResultAddress resAdr(RiaDefines::STATIC_NATIVE, RiaDefines::eqlnumResultName());
if (results->hasResultEntry(resAdr))
{
results->ensureKnownResultLoaded(resAdr);
auto vals = results->uniqueCellScalarValues(resAdr);
for (auto v : vals)
{