mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2310 Add isProjectFileVersionEqualOrOlderThan to RimProject and use from summary plot
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "RimAsciiDataCurve.h"
|
||||
#include "RimGridTimeHistoryCurve.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimSummaryAxisProperties.h"
|
||||
#include "RimSummaryCase.h"
|
||||
#include "RimSummaryCurve.h"
|
||||
@@ -1327,6 +1328,16 @@ void RimSummaryPlot::initAfterRead()
|
||||
{
|
||||
m_summaryCurveCollection->addCurve(curve);
|
||||
}
|
||||
|
||||
RimProject* proj = nullptr;
|
||||
this->firstAncestorOrThisOfType(proj);
|
||||
if (proj)
|
||||
{
|
||||
if (proj->isProjectFileVersionEqualOrOlderThan("2017.0.0"))
|
||||
{
|
||||
m_useAutoPlotTitle = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user