Commit 09e1728d authored by Frédéric Larue's avatar Frédéric Larue

Minor bug fixed in GradientWidget::getInterval() function.

parent 32f0a810
...@@ -161,7 +161,7 @@ int GradientWidget::getInterval( float value ) const ...@@ -161,7 +161,7 @@ int GradientWidget::getInterval( float value ) const
{ {
int p = beg + (end-beg)/2; int p = beg + (end-beg)/2;
if( value <= m_Stops[p].value() ) if( value < m_Stops[p].value() )
end = p; end = p;
else else
beg = p+1; beg = p+1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment