fix to the 0/0 error real cursor position check
Merge pull request #284 from Pomax/bug937150

fix to the 0/0 error real cursor position check