Skip to content

Commit

Permalink
Refs #11014 Resolves Coverity 1076232
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Feb 9, 2015
1 parent 9d2e1f4 commit 89520dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Expand Up @@ -2438,7 +2438,10 @@ void ApplicationWindow::change3DData(const QString& colName)
if (!w)
return;

dynamic_cast<Graph3D*>(w)->changeDataColumn(table(colName), colName);
auto g3d = dynamic_cast<Graph3D*>(w);
if (g3d)
g3d->changeDataColumn(table(colName), colName);

emit modified();
}

Expand Down

0 comments on commit 89520dd

Please sign in to comment.