DescriptionFix scale on axis may be negative.
This patch modifies judgment condition whether is equal to zero for double type, avoid unnecessary sqrt calls in more case.
If "a" and "b" are both equal to zero, and "c" is less then zero, currently ScaleOnAxis will return "c" which is negative. So, we should ensure that the result is greater than zero.
BUG=none.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267078
Patch Set 1 #Messages
Total messages: 11 (0 generated)
|