Skip to content

Commit

Permalink
Refs #11094 Resolve Coverity issues in insert3DMatrixPlot
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Feb 16, 2015
1 parent ed90dbb commit d9b0d18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Expand Up @@ -2424,7 +2424,10 @@ void ApplicationWindow::insert3DMatrixPlot(const QString& matrix_name)
if (!w)
return;

dynamic_cast<Graph3D*>(w)->addMatrixData(matrix(matrix_name));
auto g3d = dynamic_cast<Graph3D*>(w);
if(g3d)
g3d->addMatrixData(matrix(matrix_name));

emit modified();
}

Expand Down

0 comments on commit d9b0d18

Please sign in to comment.