Fixes #3496
Merge pull request #3498 from bakercp/bugfix-ofDrawRectRounded

Fixes #3496