diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-06-22 12:48:11 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-06-22 12:48:11 +0200 |
| commit | 8c99bee3d98f7c3221e969c2924d87729ba7faea (patch) | |
| tree | a9d397745c633f2306762e740486da8413b84223 /src/GraphicObjects/NumericControl.cs | |
| parent | dc995bd1da98971009454f4efe043d6237d00729 (diff) | |
- simplify value change with only actual value, not the old one
- First tests with Scrollbar
Diffstat (limited to 'src/GraphicObjects/NumericControl.cs')
| -rw-r--r-- | src/GraphicObjects/NumericControl.cs | 4 |
1 files changed, 1 insertions, 3 deletions
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(); } } |