Fix for mistake in recent interface bugfix commit.

This commit is contained in:
Brecht Van Lommel 2008-05-17 13:41:34 +00:00
parent bb6c67cc73
commit 81dee8e1dd

@ -2129,7 +2129,7 @@ static int ui_do_but_NUM(uiBut *but)
sx= mval[0]; sx= mval[0];
orig_x = sx; /* Store so we can scale the rate of change by the dist the mouse is from its original xlocation */ orig_x = sx; /* Store so we can scale the rate of change by the dist the mouse is from its original xlocation */
butrange= (but->max - but->min); butrange= (but->max - but->min);
fstart= (butrange == 0.0)? 0.0f: value/butrange; fstart= (butrange == 0.0)? 0.0f: (value - but->min)/butrange;
f= fstart; f= fstart;
temp= (int)value; temp= (int)value;