Skip to content

Commit

Permalink
Refs #11014 Resolves Coverity 1076245
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Feb 9, 2015
1 parent 97ce578 commit 09fa6c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Expand Up @@ -6300,7 +6300,7 @@ QStringList ApplicationWindow::columnsList(Table::PlotDesignation plotType)
continue;

Table *t = dynamic_cast<Table*>(w);
for (int i=0; i < t->numCols(); i++)
for (int i=0; t && i < t->numCols(); i++)
{
if (t->colPlotDesignation(i) == plotType || plotType == Table::All)
list << QString(t->objectName()) + "_" + t->colLabel(i);
Expand Down

0 comments on commit 09fa6c8

Please sign in to comment.