Closed mlandres closed 6 months ago
…s no range
If the target _pd has no range, _pd.max-_pd.min == 0 and so parent_factor=_weight/0 == INFINITY. And so _pd is wrongly incremented (by -2147483648). Actually the value should not be touched if the ProgressData has no range.
_pd
_pd.max-_pd.min == 0
parent_factor=_weight/0 == INFINITY
-2147483648
ProgressData
…s no range
If the target
_pd
has no range,_pd.max-_pd.min == 0
and soparent_factor=_weight/0 == INFINITY
. And so_pd
is wrongly incremented (by-2147483648
). Actually the value should not be touched if theProgressData
has no range.