diff --git a/ApplicationLibCode/UserInterface/RiuMultiPlotPage.cpp b/ApplicationLibCode/UserInterface/RiuMultiPlotPage.cpp index 5de96689a6..7527605b50 100644 --- a/ApplicationLibCode/UserInterface/RiuMultiPlotPage.cpp +++ b/ApplicationLibCode/UserInterface/RiuMultiPlotPage.cpp @@ -605,6 +605,7 @@ void RiuMultiPlotPage::performUpdate( RiaDefines::MultiPlotPageUpdateType whatTo reinsertPlotWidgets(); alignCanvasTops(); if ( m_autoAlignAxes ) alignAxes(); + updatePlotLayouts(); return; } @@ -643,6 +644,16 @@ void RiuMultiPlotPage::refreshLegends() } } +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- +void RiuMultiPlotPage::updatePlotLayouts() +{ + QList> plotWidgets = this->visiblePlotWidgets(); + for ( auto p : plotWidgets ) + p->updateLayout(); +} + //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationLibCode/UserInterface/RiuMultiPlotPage.h b/ApplicationLibCode/UserInterface/RiuMultiPlotPage.h index 1aabc4304a..b9c235e29c 100644 --- a/ApplicationLibCode/UserInterface/RiuMultiPlotPage.h +++ b/ApplicationLibCode/UserInterface/RiuMultiPlotPage.h @@ -123,6 +123,7 @@ protected: virtual void reinsertPlotWidgets(); virtual void refreshLegends(); + void updatePlotLayouts(); void addLegendWidget( RiuPlotWidget* plotWidget, RiuQwtPlotLegend* legend,