SF Bugs#115: Fix application hanging on degrees input ending in a comma.

Need to detect when the processing endptr hasn't changed in analysing the text input,
 otherwise the while loop will get stuck in an infinite loop.