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
{
int p = beg + (end-beg)/2;
if( value <= m_Stops[p].value() )
if( value < m_Stops[p].value() )
end = p;
else
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