(#396) Adding a curve is now legal also when there's no plot yet

This commit is contained in:
Pål Hagen 2015-09-03 15:04:48 +02:00
parent f078a589a5
commit ef727b4797

View File

@ -88,9 +88,12 @@ caf::PdmFieldHandle* RimWellLogPlotTrace::objectToggleField()
//--------------------------------------------------------------------------------------------------
void RimWellLogPlotTrace::addCurve(RimWellLogPlotCurve* curve)
{
CVF_ASSERT(m_viewer);
curves.push_back(curve);
curve->setPlot(m_viewer);
if (m_viewer)
{
curve->setPlot(m_viewer);
}
}