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

This commit is contained in:
Magne Sjaastad committed 2019-10-25 11:57:30 +02:00
1 parent e21e4f5008
commit f2d5adca60
1 file changed
+2 -2
@@ -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
@@ -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