#4926 Summary Templates : Avoid creation of one extra duplicate curve

This commit is contained in:
Magne Sjaastad
2019-10-25 11:57:30 +02:00
parent e21e4f5008
commit f2d5adca60

View File

@@ -138,7 +138,7 @@ void RicSummaryPlotTemplateTools::appendSummaryPlotToPlotCollection(
} }
} }
if ( selectedSummaryCases.size() > static_cast<size_t>( maximumIndexValue ) ) if ( selectedSummaryCases.size() > static_cast<size_t>( maximumIndexValue + 1 ) )
{ {
// Use the curve style of the last curve in template, and duplicate this for remaining data sources // Use the curve style of the last curve in template, and duplicate this for remaining data sources
@@ -192,7 +192,7 @@ void RicSummaryPlotTemplateTools::appendSummaryPlotToPlotCollection(
} }
} }
if ( selectedEnsembles.size() > static_cast<size_t>( maximumIndexValue ) ) if ( selectedEnsembles.size() > static_cast<size_t>( maximumIndexValue + 1 ) )
{ {
// Use the curve style of the last curve in template, and duplicate this for remaining data sources // Use the curve style of the last curve in template, and duplicate this for remaining data sources