mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 15:36:09 -06:00
MultiPlot: Fix small empty legend when toggling legend position.
This commit is contained in:
parent
dfbdfaa726
commit
52cee02ffe
@ -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<QPointer<RiuPlotWidget>> plotWidgets = this->visiblePlotWidgets();
|
||||
for ( auto p : plotWidgets )
|
||||
p->updateLayout();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -123,6 +123,7 @@ protected:
|
||||
|
||||
virtual void reinsertPlotWidgets();
|
||||
virtual void refreshLegends();
|
||||
void updatePlotLayouts();
|
||||
|
||||
void addLegendWidget( RiuPlotWidget* plotWidget,
|
||||
RiuQwtPlotLegend* legend,
|
||||
|
Loading…
Reference in New Issue
Block a user