#997 Fixed crash due to missing main plot window

This commit is contained in:
Jacob Støren 2016-11-22 13:48:19 +01:00
parent c7ac7ab9f9
commit 3d66d1698a

View File

@ -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;