Fixed text button positioning bug.

- Fixed a bug where the check box was being incorrectly taken into
account even when it's not being drawn.
- Also fixed an issue with parentheses that was causing a compiler
warning.