[[ Bug 13829 ]] Round values for formatteRect correctly
Merge pull request #1379 from runrevali/bugfix-13829

[[ Bug 13829 ]] Round values for formatteRect correctly