From 8c99bee3d98f7c3221e969c2924d87729ba7faea Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Mon, 22 Jun 2015 12:48:11 +0200 Subject: - simplify value change with only actual value, not the old one - First tests with Scrollbar --- src/GraphicObjects/NumericControl.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/GraphicObjects/NumericControl.cs') diff --git a/src/GraphicObjects/NumericControl.cs b/src/GraphicObjects/NumericControl.cs index 247b4e92..c6d76bcd 100644 --- a/src/GraphicObjects/NumericControl.cs +++ b/src/GraphicObjects/NumericControl.cs @@ -90,8 +90,6 @@ namespace go if (value == _actualValue) return; - int oldV = Convert.ToInt32(_actualValue); - if (value < minValue) _actualValue = minValue; else if (value > maxValue) @@ -99,7 +97,7 @@ namespace go else _actualValue = value; - onValueChanged(this,new ValueChangeEventArgs("Value", oldV, Convert.ToInt32( _actualValue))); + onValueChanged(this,new ValueChangeEventArgs("Value", Convert.ToInt32( _actualValue))); registerForGraphicUpdate(); } } -- cgit v1.3.1-4-g156e