Use same collection type for source cases and statistics cases in RimIdenticalGridCaseGroup

p4#: 21053
This commit is contained in:
Magne Sjaastad
2013-03-22 11:47:46 +01:00
parent d85b0d4619
commit d1cc482355
9 changed files with 104 additions and 37 deletions

View File

@@ -286,7 +286,7 @@ bool RIApplication::loadProject(const QString& projectFileName)
{
if (m_project->caseGroups[cgIdx]->statisticsCaseCollection())
{
caf::PdmPointersField<RimStatisticsCase*> & statCases = m_project->caseGroups[cgIdx]->statisticsCaseCollection()->cases();
caf::PdmPointersField<RimReservoir*> & statCases = m_project->caseGroups[cgIdx]->statisticsCaseCollection()->reservoirs();
for (size_t scIdx = 0; scIdx < statCases.size(); ++scIdx)
{
casesToLoad.push_back(statCases[scIdx]);