mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#396) Adding a curve is now legal also when there's no plot yet
This commit is contained in:
parent
f078a589a5
commit
ef727b4797
@ -88,9 +88,12 @@ caf::PdmFieldHandle* RimWellLogPlotTrace::objectToggleField()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimWellLogPlotTrace::addCurve(RimWellLogPlotCurve* curve)
|
void RimWellLogPlotTrace::addCurve(RimWellLogPlotCurve* curve)
|
||||||
{
|
{
|
||||||
CVF_ASSERT(m_viewer);
|
|
||||||
curves.push_back(curve);
|
curves.push_back(curve);
|
||||||
curve->setPlot(m_viewer);
|
|
||||||
|
if (m_viewer)
|
||||||
|
{
|
||||||
|
curve->setPlot(m_viewer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user