Skip to content

Commit

Permalink
Refs #11094 Resolves Coverity 1076218
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Feb 16, 2015
1 parent dc9ea06 commit 119ae33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Expand Up @@ -7707,7 +7707,11 @@ void ApplicationWindow::printAllPlots()

foreach(MdiSubWindow *w, windows){
if (w->isA("MultiLayer") && printer.newPage())
dynamic_cast<MultiLayer*>(w)->printAllLayers(paint);
{
MultiLayer* ml = dynamic_cast<MultiLayer*>(w);
if (ml)
ml->printAllLayers(paint);
}
}
paint->end();
delete paint;
Expand Down

0 comments on commit 119ae33

Please sign in to comment.