mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-03 12:10:57 -06:00
#997 Fixed crash due to missing main plot window
This commit is contained in:
parent
c7ac7ab9f9
commit
3d66d1698a
@ -41,6 +41,9 @@ RimWellLogPlot* RicNewWellLogPlotFeatureImpl::createWellLogPlot()
|
|||||||
RimWellLogPlot* plot = new RimWellLogPlot();
|
RimWellLogPlot* plot = new RimWellLogPlot();
|
||||||
wellLogPlotColl->wellLogPlots().push_back(plot);
|
wellLogPlotColl->wellLogPlots().push_back(plot);
|
||||||
|
|
||||||
|
// Make sure the summary plot window is created and visible
|
||||||
|
RiuMainPlotWindow* plotwindow = RiaApplication::instance()->getOrCreateAndShowMainPlotWindow();
|
||||||
|
|
||||||
plot->setDescription(QString("Well Log Plot %1").arg(wellLogPlotCollection()->wellLogPlots.size()));
|
plot->setDescription(QString("Well Log Plot %1").arg(wellLogPlotCollection()->wellLogPlots.size()));
|
||||||
|
|
||||||
return plot;
|
return plot;
|
||||||
|
Loading…
Reference in New Issue
Block a user