Skip to content

Commit

Permalink
Refs #11094 Resolve Coverity issues in showPlotAssociations
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Feb 16, 2015
1 parent f16b0cd commit ded7997
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Expand Up @@ -6473,7 +6473,11 @@ AssociationsDialog* ApplicationWindow::showPlotAssociations(int curve)
if (!w)
return 0;

Graph *g = dynamic_cast<MultiLayer*>(w)->activeGraph();
auto ml = dynamic_cast<MultiLayer*>(w);
if(!ml)
return 0;

Graph *g = ml->activeGraph();
if (!g)
return 0;

Expand Down

0 comments on commit ded7997

Please sign in to comment.