Skip to content

Commit

Permalink
Refs #11014 Resolves Coverity 1076235
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Feb 9, 2015
1 parent ad02c59 commit eaba0b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Expand Up @@ -3793,6 +3793,9 @@ void ApplicationWindow::addErrorBars()
return;

MultiLayer* plot = dynamic_cast<MultiLayer*>(w);
if (!plot)
return;

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

0 comments on commit eaba0b1

Please sign in to comment.