Bug 460726

Summary: Right ascension in flag manager don't get hour/minutes/seconds but degrees/minutes
Product: [Applications] kstars Reporter: Ferran <ferran.casarramona>
Component: generalAssignee: Jasem Mutlaq <mutlaqja>
Status: RESOLVED FIXED    
Severity: normal CC: ben
Priority: NOR    
Version: 3.6.1   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In: 3.6.2
Sentry Crash Report:
Attachments: Right Ascension field (21h ...) is interpreted as (01h ...) in the table below.
Screen Recording of the buggy behavior.

Description Ferran 2022-10-19 18:37:26 UTC
Created attachment 153042 [details]
Right Ascension field (21h ...) is interpreted as (01h ...) in the table below.

SUMMARY
***
When adding/editing a flag in KStars (left click Add flag) the Right Ascension field interprets data as degrees, not as hours.

***


STEPS TO REPRODUCE
1. Open Add flag pressing left click in the star map.
2. Enter manually an R.A. and DEC on the corresponding fields
3. Enter a name for the flag and press the Add button
4. Check the wrong R.A. in the table of flags below. (see Attached screen capture)

OBSERVED RESULT

The wrong R.A. is stored, and centering the map or the telescope leads to a wrong R.A.

EXPECTED RESULT

The R.A. should be interpreted as hours correctly.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 10.15.7
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
It also happens in KStars 3.6.0
Comment 1 Benjamin Long 2022-11-03 19:27:05 UTC
Created attachment 153443 [details]
Screen Recording of the buggy behavior.

I can confirm this bug exists in kstars 3.6.1 on KDE Neon 22.04. I'm using the Kstars-bleeding packages from the PPA.
I've attached a short screen recording showing the broken behavior.
A workaround is to enter the numbers multiplied by 15, then they are interpreted as the numbers you wanted.
Comment 2 Jasem Mutlaq 2022-11-04 04:48:59 UTC
Git commit da18bed5ca3fe01fb07325b7960b41fb9e071252 by Jasem Mutlaq.
Committed on 04/11/2022 at 04:48.
Pushed by mutlaqja into branch 'master'.

Fix FlagManager RA box to show hours instead of degrees.
FIXED-IN:3.6.2

M  +2    -0    kstars/tools/flagmanager.cpp

https://invent.kde.org/education/kstars/commit/da18bed5ca3fe01fb07325b7960b41fb9e071252
Comment 3 Jasem Mutlaq 2022-11-08 09:42:00 UTC
Git commit db86412a6f628ca8cde46197453e231aab220fed by Jasem Mutlaq.
Committed on 08/11/2022 at 09:41.
Pushed by mutlaqja into branch 'stable-3.6.1'.

Fix FlagManager RA box to show hours instead of degrees.
FIXED-IN:3.6.2

M  +2    -0    kstars/tools/flagmanager.cpp

https://invent.kde.org/education/kstars/commit/db86412a6f628ca8cde46197453e231aab220fed