aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/NumericControl.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-31 12:25:56 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-31 12:25:56 +0200
commit135ced0e0a94ae759fba5fec7c0f35ec9be28231 (patch)
treebf7704783131ed55d89ab1dd8183458584c10f03 /src/GraphicObjects/NumericControl.cs
parentd7457dc87ec4a282ac58a5617f149164a1421a64 (diff)
convert hsv to integer in color pickerIFaceByParenting
Diffstat (limited to 'src/GraphicObjects/NumericControl.cs')
-rw-r--r--src/GraphicObjects/NumericControl.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/GraphicObjects/NumericControl.cs b/src/GraphicObjects/NumericControl.cs
index f0eda90f..0c513067 100644
--- a/src/GraphicObjects/NumericControl.cs
+++ b/src/GraphicObjects/NumericControl.cs
@@ -129,7 +129,8 @@ namespace Crow
else
_actualValue = value;
- _actualValue = Math.Round (_actualValue, _decimals);
+ if (_decimals >= 0)
+ _actualValue = Math.Round (_actualValue, _decimals);
NotifyValueChanged("Value", _actualValue);
RegisterForGraphicUpdate();