#4129 Don't recreate all curves when toggling curve set

This commit is contained in:
Gaute Lindkvist
2019-02-22 10:15:07 +01:00
parent 0aa7dc1777
commit 26f4577803
2 changed files with 9 additions and 5 deletions

View File

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