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:
@@ -216,9 +216,9 @@ void RiuMultiPlotPage::removePlot( RiuQwtPlotWidget* plotWidget )
|
|||||||
if ( legend )
|
if ( legend )
|
||||||
{
|
{
|
||||||
legend->setParent( nullptr );
|
legend->setParent( nullptr );
|
||||||
m_legends.removeAt( plotWidgetIdx );
|
|
||||||
delete legend;
|
delete legend;
|
||||||
}
|
}
|
||||||
|
m_legends.removeAt( plotWidgetIdx );
|
||||||
|
|
||||||
QLabel* subTitle = m_subTitles[plotWidgetIdx];
|
QLabel* subTitle = m_subTitles[plotWidgetIdx];
|
||||||
subTitle->setParent( nullptr );
|
subTitle->setParent( nullptr );
|
||||||
|
|||||||
Reference in New Issue
Block a user