mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add support for summary cross plot curves in summary plots
This commit is contained in:
@@ -371,7 +371,7 @@ void RicSummaryPlotEditorUi::syncPreviewCurvesFromUiSelection()
|
||||
|
||||
for ( const auto& curve : currentCurvesInPreviewPlot )
|
||||
{
|
||||
currentCurveDefs.insert( curve->curveDefinitionY() );
|
||||
currentCurveDefs.insert( curve->curveDefinition() );
|
||||
}
|
||||
|
||||
{
|
||||
@@ -385,7 +385,7 @@ void RicSummaryPlotEditorUi::syncPreviewCurvesFromUiSelection()
|
||||
|
||||
for ( const auto& curve : currentCurvesInPreviewPlot )
|
||||
{
|
||||
RiaSummaryCurveDefinition curveDef = curve->curveDefinitionY();
|
||||
RiaSummaryCurveDefinition curveDef = curve->curveDefinition();
|
||||
if ( deleteCurveDefs.count( curveDef ) > 0 ) curvesToDelete.insert( curve );
|
||||
}
|
||||
}
|
||||
@@ -630,7 +630,7 @@ void RicSummaryPlotEditorUi::populateCurveCreator( const RimSummaryPlot& sourceS
|
||||
|
||||
for ( const auto& curve : sourceSummaryPlot.summaryCurves() )
|
||||
{
|
||||
curveDefs.push_back( curve->curveDefinitionY() );
|
||||
curveDefs.push_back( curve->curveDefinition() );
|
||||
|
||||
// Copy curve object to the preview plot
|
||||
copyCurveAndAddToPlot( curve, m_previewPlot.get(), true );
|
||||
|
||||
Reference in New Issue
Block a user