mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-31 09:14:11 -05:00
(#396) Adding a curve is now legal also when there's no plot yet
This commit is contained in:
1 parent
f078a589a5
commit
ef727b4797
1 file changed
+5
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user