Skip to content

Commit

Permalink
dynamic_cast, changePlotType(), coverity issue 1075753, re #11151
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeMPouzols committed Feb 21, 2015
1 parent ae46dc1 commit 634b3a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/Mantid/MantidPlot/src/PlotDialog.cpp
Expand Up @@ -416,6 +416,9 @@ void PlotDialog::changePlotType(int plotType)
insertTabs(curveType);

VectorCurve *v = dynamic_cast<VectorCurve*>(item->plotItem());
if (!v)
return;

if (plotType)
{
graph->setCurveType(item->plotItemIndex(), Graph::VectXYAM);
Expand Down

0 comments on commit 634b3a8

Please sign in to comment.