Prevent divide by zero
Changed parens

Changed parens
Merge pull request #7113 from Smilex/issue_7100

Prevent divide by zero. Issue #7100