Skip to content

Commit

Permalink
Refs #11094 Resolve Coverity issues in exportPDF
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Feb 16, 2015
1 parent dbc9d45 commit db2301e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Expand Up @@ -7660,7 +7660,9 @@ void ApplicationWindow::exportPDF()
if (!w)
return;

if (w->isA("MultiLayer") && (dynamic_cast<MultiLayer*>(w))->isEmpty()){
auto ml = dynamic_cast<MultiLayer*>(w);

if (w->isA("MultiLayer") && ml && ml->isEmpty()) {
QMessageBox::warning(this,tr("MantidPlot - Warning"),//Mantid
tr("<h4>There are no plot layers available in this window.</h4>"));
return;
Expand Down

0 comments on commit db2301e

Please sign in to comment.