Skip to content

Commit

Permalink
Refs #11014 Resolves Coverity 1076231
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Feb 9, 2015
1 parent 89520dd commit 5c1e21b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Expand Up @@ -8432,8 +8432,9 @@ void ApplicationWindow::cutSelection()
return;

if (g->activeTool()){
if (g->activeTool()->rtti() == PlotToolInterface::Rtti_RangeSelector)
dynamic_cast<RangeSelectorTool*>(g->activeTool())->cutSelection();
auto rst = dynamic_cast<RangeSelectorTool*>(g->activeTool());
if (rst)
rst->cutSelection();
} else {
copyMarker();
g->removeMarker();
Expand Down

0 comments on commit 5c1e21b

Please sign in to comment.