Skip to content

Commit

Permalink
Refs #11305 Fix Coverity issue 1076128
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Mar 10, 2015
1 parent 613bf16 commit 2e10a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Expand Up @@ -10143,7 +10143,7 @@ QStringList ApplicationWindow::dependingPlots(const QString& name)
foreach(Graph *g, layers){
onPlot = g->curvesList();
onPlot = onPlot.grep (name,TRUE);
if (static_cast<int>(onPlot.count()) && plots.contains(w->objectName())<=0)
if (static_cast<int>(onPlot.count()) && !plots.contains(w->objectName()))
plots << w->objectName();
}
}else if (w->isA("Graph3D")){
Expand Down

0 comments on commit 2e10a79

Please sign in to comment.