Merge pull request #3277 from d3v0x/3221_range-minus-zero-fix
do not return zero with minus-sign within range value, fixes #3221
This commit is contained in:
commit
516ebbadb9
1 changed files with 5 additions and 1 deletions
|
@ -78,6 +78,10 @@ void Range::set_val(double p_val) {
|
||||||
if (p_val<shared->min)
|
if (p_val<shared->min)
|
||||||
p_val=shared->min;
|
p_val=shared->min;
|
||||||
|
|
||||||
|
//avoid to set -0
|
||||||
|
if (p_val == 0)
|
||||||
|
p_val = 0;
|
||||||
|
|
||||||
if (shared->val==p_val)
|
if (shared->val==p_val)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue