From 3e65a52cb6eb210baa38abfff806e48016e44b97 Mon Sep 17 00:00:00 2001 From: Harry Jeffery <henry.jeffery@stfc.ac.uk> Date: Mon, 9 Feb 2015 16:05:05 +0000 Subject: [PATCH] Refs #11014 Resolves Coverity 1076242 --- Code/Mantid/MantidPlot/src/ApplicationWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Code/Mantid/MantidPlot/src/ApplicationWindow.cpp b/Code/Mantid/MantidPlot/src/ApplicationWindow.cpp index 9fefa3eac6d..acb7b16c1fc 100644 --- a/Code/Mantid/MantidPlot/src/ApplicationWindow.cpp +++ b/Code/Mantid/MantidPlot/src/ApplicationWindow.cpp @@ -5743,6 +5743,8 @@ void ApplicationWindow::exportGraph() Graph3D *plot3D = 0; if(w->isA("MultiLayer")){ plot2D = dynamic_cast<MultiLayer*>(w); + if (!plot2D) + return; if (plot2D->isEmpty()){ QMessageBox::critical(this, tr("MantidPlot - Export Error"),//Mantid tr("<h4>There are no plot layers available in this window!</h4>")); -- GitLab