Skip to content

Commit

Permalink
Fixed the bug for extreme case. Refs #10224.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Sep 19, 2014
1 parent bdfd856 commit eda2e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/Algorithms/src/FindPeaks.cpp
Expand Up @@ -1095,7 +1095,7 @@ namespace Algorithms
double lowest = height;

// Extreme case
if (i_max == vecX.size())
if (i_max == vecY.size())
i_max = i_max - 1;

// Searching
Expand Down

0 comments on commit eda2e61

Please sign in to comment.