mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4926 Summary Templates : Avoid creation of one extra duplicate curve
This commit is contained in:
parent
e21e4f5008
commit
f2d5adca60
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user