From 93b2f1a03926c64676c4ead61ea8cc46bfe1cb87 Mon Sep 17 00:00:00 2001
From: Tofu Linden <tofu.linden@lindenlab.com>
Date: Tue, 31 Aug 2010 17:18:27 +0100
Subject: [PATCH] VWR-22162 FIXED 'I can't add negative signs to TWIST in Edit
 Mode' Probably a regression from the prevalidator rework - was enforcing
 non-negative int when precision=0 (i.e. non-float), should have been
 enforcing only full int range.

---
 indra/llui/llspinctrl.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/llui/llspinctrl.cpp b/indra/llui/llspinctrl.cpp
index 4890a75c4a2..9decfa0b254 100644
--- a/indra/llui/llspinctrl.cpp
+++ b/indra/llui/llspinctrl.cpp
@@ -128,7 +128,7 @@ LLSpinCtrl::LLSpinCtrl(const LLSpinCtrl::Params& p)
 	}
 	else //should accept int numbers
 	{
-		params.prevalidate_callback(&LLTextValidate::validateNonNegativeS32);
+		params.prevalidate_callback(&LLTextValidate::validateInt);
 	}
 	
 	params.follows.flags(FOLLOWS_LEFT | FOLLOWS_BOTTOM);
-- 
GitLab