aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/NumericControl.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-06-22 12:48:11 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-06-22 12:48:11 +0200
commit8c99bee3d98f7c3221e969c2924d87729ba7faea (patch)
treea9d397745c633f2306762e740486da8413b84223 /src/GraphicObjects/NumericControl.cs
parentdc995bd1da98971009454f4efe043d6237d00729 (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.cs4
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();
}
}