mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Multiaxis plot: fix moving axis from other side
This commit is contained in:
@@ -1854,15 +1854,10 @@ void RimSummaryPlot::axisPositionChanged( const caf::SignalEmitter* emitter,
|
||||
{
|
||||
auto oldAxisProperties = axisPropertiesForPlotAxis( oldPlotAxis );
|
||||
if ( oldAxisProperties ) m_axisProperties.removeChildObject( oldAxisProperties );
|
||||
plotWidget()->moveAxis( oldPlotAxis, newPlotAxis );
|
||||
}
|
||||
|
||||
std::set<RiuPlotAxis> usedPlotAxis;
|
||||
for ( const auto& axisProperties : m_axisProperties )
|
||||
{
|
||||
usedPlotAxis.insert( axisProperties->plotAxisType() );
|
||||
}
|
||||
|
||||
plotWidget()->pruneAxes( usedPlotAxis );
|
||||
updateAxes();
|
||||
}
|
||||
|
||||
// This is probably to much, but difficult to find the required updates
|
||||
|
||||
Reference in New Issue
Block a user