mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix regression crash due to legend issue
This commit is contained in:
parent
87cea76004
commit
2847c46d64
@ -216,9 +216,9 @@ void RiuMultiPlotPage::removePlot( RiuQwtPlotWidget* plotWidget )
|
||||
if ( legend )
|
||||
{
|
||||
legend->setParent( nullptr );
|
||||
m_legends.removeAt( plotWidgetIdx );
|
||||
delete legend;
|
||||
}
|
||||
m_legends.removeAt( plotWidgetIdx );
|
||||
|
||||
QLabel* subTitle = m_subTitles[plotWidgetIdx];
|
||||
subTitle->setParent( nullptr );
|
||||
|
Loading…
Reference in New Issue
Block a user