mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
Avoid overwrite of axis object for newer project file versions
Add project file version check to the usage of m_plotAxis_OBSOLETE in RimSummaryCurve::initAfterRead()
This commit is contained in:
1 parent
43fa4197c7
commit
b0a86de653
2 files changed
+6
-3
No files matched your search
@@ -791,7 +791,7 @@ void RimSummaryCurve::initAfterRead()
|
||||
{
|
||||
RimStackablePlotCurve::initAfterRead();
|
||||
|
||||
if ( m_yPlotAxisProperties.value() == nullptr )
|
||||
if ( RimProject::current()->isProjectFileVersionEqualOrOlderThan( "2021" ) && m_yPlotAxisProperties.value() == nullptr )
|
||||
{
|
||||
auto plot = firstAncestorOrThisOfType<RimSummaryPlot>();
|
||||
if ( plot ) m_yPlotAxisProperties = plot->axisPropertiesForPlotAxis( RiuPlotAxis( m_plotAxis_OBSOLETE() ) );
|
||||
|
||||
Reference in new issue
Block a user