Skip to content
Snippets Groups Projects
Commit 3e65a52c authored by Harry Jeffery's avatar Harry Jeffery
Browse files

Refs #11014 Resolves Coverity 1076242

parent 5d6e7d5c
No related branches found
No related tags found
No related merge requests found
...@@ -5743,6 +5743,8 @@ void ApplicationWindow::exportGraph() ...@@ -5743,6 +5743,8 @@ void ApplicationWindow::exportGraph()
Graph3D *plot3D = 0; Graph3D *plot3D = 0;
if(w->isA("MultiLayer")){ if(w->isA("MultiLayer")){
plot2D = dynamic_cast<MultiLayer*>(w); plot2D = dynamic_cast<MultiLayer*>(w);
if (!plot2D)
return;
if (plot2D->isEmpty()){ if (plot2D->isEmpty()){
QMessageBox::critical(this, tr("MantidPlot - Export Error"),//Mantid QMessageBox::critical(this, tr("MantidPlot - Export Error"),//Mantid
tr("<h4>There are no plot layers available in this window!</h4>")); tr("<h4>There are no plot layers available in this window!</h4>"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment