#1665 Fix bug where project modifier was not created before use

This commit is contained in:
Bjørnar Grip Fjær 2017-07-28 15:15:20 +02:00
parent d54bbcef8a
commit 3585ad020b
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ void RicfReplaceCase::execute()
}
cvf::ref<RiaProjectModifier> projectModifier;
cvf::ref<RiaProjectModifier> projectModifier = new RiaProjectModifier;
if (m_caseId() == -1)
{
projectModifier->setReplaceCaseFirstOccurrence(m_newGridFile());

View File

@ -53,7 +53,7 @@ void RicfReplaceSourceCases::execute()
return;
}
cvf::ref<RiaProjectModifier> projectModifier;
cvf::ref<RiaProjectModifier> projectModifier = new RiaProjectModifier;
std::vector<QString> listFileNames = RiaApplication::readFileListFromTextFile(m_gridListFile());
if (m_caseGroupId() == -1)