Fixed setting x or y position to +-Infinity
Merge pull request #275 from nathan/infinite-position

Fixed setting x or y position to +-Infinity