From 81dee8e1dd52734c7d9a3fc9290a52b9201a1b4e Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 17 May 2008 13:41:34 +0000 Subject: [PATCH] Fix for mistake in recent interface bugfix commit. --- source/blender/src/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index 6635af80c0b..ab8e53c3cb3 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -2129,7 +2129,7 @@ static int ui_do_but_NUM(uiBut *but) 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 */ 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; temp= (int)value;