mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Set pointer to NULL before insterting into ChildArray
This commit is contained in:
parent
78323e2299
commit
767defd90f
@ -161,9 +161,13 @@ void RimEclipseCellColors::initAfterRead()
|
|||||||
if (obsoleteField_legendConfig)
|
if (obsoleteField_legendConfig)
|
||||||
{
|
{
|
||||||
// The current legend config is NOT stored in <ResultVarLegendDefinitionList> in ResInsight up to v 1.3.7-dev
|
// The current legend config is NOT stored in <ResultVarLegendDefinitionList> in ResInsight up to v 1.3.7-dev
|
||||||
m_legendConfigData.push_back(obsoleteField_legendConfig);
|
RimLegendConfig* obsoleteLegend = obsoleteField_legendConfig();
|
||||||
m_legendConfigPtrField = obsoleteField_legendConfig;
|
|
||||||
|
// set to NULL before pushing into container
|
||||||
obsoleteField_legendConfig = NULL;
|
obsoleteField_legendConfig = NULL;
|
||||||
|
|
||||||
|
m_legendConfigData.push_back(obsoleteLegend);
|
||||||
|
m_legendConfigPtrField = obsoleteLegend;
|
||||||
}
|
}
|
||||||
|
|
||||||
changeLegendConfig(this->resultVariable());
|
changeLegendConfig(this->resultVariable());
|
||||||
|
Loading…
Reference in New Issue
Block a user