mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
#3318 Plot editor performance. Several performance fixes
This commit is contained in:
1 parent
7d2889c66b
commit
b4dd37337a
22 files changed
+294
-48
No files matched your search
@@ -60,7 +60,7 @@
|
||||
|
||||
#include <set>
|
||||
#include <limits>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimSummaryPlot, "SummaryPlot");
|
||||
|
||||
@@ -953,7 +953,15 @@ void RimSummaryPlot::addCurveNoUpdate(RimSummaryCurve* curve)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryPlot::deleteCurve(RimSummaryCurve* curve)
|
||||
{
|
||||
if (curve)
|
||||
deleteCurves({ curve });
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryPlot::deleteCurves(const std::vector<RimSummaryCurve*>& curves)
|
||||
{
|
||||
for(const auto curve : curves)
|
||||
{
|
||||
if (m_summaryCurveCollection)
|
||||
{
|
||||
@@ -962,7 +970,7 @@ void RimSummaryPlot::deleteCurve(RimSummaryCurve* curve)
|
||||
if (c == curve)
|
||||
{
|
||||
m_summaryCurveCollection->deleteCurve(curve);
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -983,12 +991,13 @@ void RimSummaryPlot::deleteCurve(RimSummaryCurve* curve)
|
||||
}
|
||||
m_ensembleCurveSetCollection->deleteCurveSet(curveSet);
|
||||
}
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
updateCaseNameHasChanged();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user