#8536 Summary Plot: Fix axis position for legacy projects.

The axis property position has to be reassigned for all axis types.
This commit is contained in:
Kristian Bendiksen 2022-02-14 09:56:08 +01:00 committed by Magne Sjaastad
parent 3d6b7bdb0e
commit a8a3d3332b

View File

@ -1961,11 +1961,8 @@ void RimSummaryPlot::initAfterRead()
// This operation will overwrite the plot axis side, default is left
axisProperties->readObjectFromXmlString( data, caf::PdmDefaultObjectFactory::instance() );
if ( axis.axis() == RiaDefines::PlotAxis::PLOT_AXIS_RIGHT )
{
// Reset the plot axis for the right axis
axisProperties->setNameAndAxis( "Right", RiaDefines::PlotAxis::PLOT_AXIS_RIGHT, 0 );
}
// Reset the plot axis for the axis property
axisProperties->setNameAndAxis( axisProperties->name(), axis.axis(), 0 );
}
};