CelestiaProject/Celestia

[Win32] Goto Object dialog ignores zeroes

Closed this issue · 0 comments

Describe the bug
In the Win32 frontend, when the Goto Object dialog is used to tell Celestia to go to an object at a specific distance, the distance entered is only read up to the first zero, so e.g. 30000 km is read as 3 km. This does not seem to affect the Qt6 frontend.

To Reproduce
Steps to reproduce the behavior:

  1. Open the "Goto Object" dialog
  2. Enter Earth and a distance of 30000 km
  3. You'll be taken to 3 km from Earth
  4. Enter a distance of 32000 km
  5. You'll be taken to 32 km
  6. Enter a distance of 32123 km
  7. You'll be taken to 32123 km
  8. Enter a distance of 32023 km
  9. You'll be taken to a distance of 32 km

Expected behavior
The full number entered is read.

Desktop (please complete the following information):

  • OS: Windows
  • Frontend: Win32
  • Version: 1.7.0 latest