From 135ced0e0a94ae759fba5fec7c0f35ec9be28231 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Sat, 31 Mar 2018 12:25:56 +0200 Subject: convert hsv to integer in color picker --- src/GraphicObjects/NumericControl.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/GraphicObjects/NumericControl.cs') 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(); -- cgit v1.3.1-4-g156e