mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Detaching all curves before the plot is deleted. Qwt needed it.
This commit is contained in:
@@ -140,7 +140,7 @@ caf::PdmFieldHandle* RimWellLogPlotCurve::userDescriptionField()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimWellLogPlotCurve::depthRange(double* minimumDepth, double* maximumDepth)
|
||||
bool RimWellLogPlotCurve::depthRange(double* minimumDepth, double* maximumDepth) const
|
||||
{
|
||||
CVF_ASSERT(minimumDepth && maximumDepth);
|
||||
CVF_ASSERT(m_plotCurve);
|
||||
@@ -164,3 +164,11 @@ void RimWellLogPlotCurve::setColor(const cvf::Color3f& color)
|
||||
m_curveColor = color;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogPlotCurve::detachCurve()
|
||||
{
|
||||
m_plotCurve->detach();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user