Skip to content

Commit

Permalink
Refs #11094 Resolve Coverity issues in print
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Feb 16, 2015
1 parent fd0a7f8 commit 655fd6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Expand Up @@ -7702,7 +7702,8 @@ void ApplicationWindow::print()
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 655fd6d

Please sign in to comment.