fixed #313
This commit is contained in:
1 parent
5ac4c644d5
commit
3957a3b7bb
2 files changed
+2
-8
No files matched your search
@@ -196,13 +196,7 @@ namespace HandyControl.Controls
|
||||
ctl.Value = maximum;
|
||||
}
|
||||
|
||||
var result = num > maximum ? maximum : num;
|
||||
if (!ctl.DecimalPlaces.HasValue)
|
||||
{
|
||||
result = Math.Floor(result);
|
||||
}
|
||||
|
||||
return result;
|
||||
return num > maximum ? maximum : num;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user