Skip to content

Commit

Permalink
Re #11422 Don't forbid negative start values for axis
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew D Jones authored and Matthew D Jones committed Aug 11, 2015
1 parent f369cd8 commit 6e27860
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/MantidPlot/src/Graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1387,14 +1387,14 @@ void Graph::setAxisScale(int axis, double start, double end, int type, double st
{
s = c->boundingRect().x();
}
if (s > 0 && s < s_min)
if (s < s_min)
{
s_min = s;
}
}
}

if (s_min != DBL_MAX && s_min > 0)
if (s_min != DBL_MAX)
{
start = s_min;
}
Expand Down

0 comments on commit 6e27860

Please sign in to comment.