Update Curve Names when changing parameters

This commit is contained in:
Gaute Lindkvist
2019-02-28 18:30:07 +01:00
parent d1c14f9729
commit b4d8dc7819
5 changed files with 131 additions and 55 deletions

View File

@@ -156,15 +156,18 @@ void RimGridCrossPlot::calculateZoomRangeAndUpdateQwt()
//--------------------------------------------------------------------------------------------------
void RimGridCrossPlot::reattachCurvesToQwtAndReplot()
{
for (auto curveSet : m_crossPlotCurveSets)
if (m_qwtPlot)
{
curveSet->detachAllCurves();
if (curveSet->isChecked())
for (auto curveSet : m_crossPlotCurveSets)
{
curveSet->setParentQwtPlotNoReplot(m_qwtPlot);
curveSet->detachAllCurves();
if (curveSet->isChecked())
{
curveSet->setParentQwtPlotNoReplot(m_qwtPlot);
}
}
m_qwtPlot->replot();
}
m_qwtPlot->replot();
}
//--------------------------------------------------------------------------------------------------