Bug 408488

Summary: Analogue Clock doesn't display 3 in some cases
Product: [Plasma] plasmashell Reporter: wsrh456
Component: Digital ClockAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: kde, nate, plasma-bugs
Priority: NOR    
Version: 5.15.5   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 5.20
Attachments: Analogue Clock displays '2' instead of '23'

Description wsrh456 2019-06-09 16:40:47 UTC
SUMMARY


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


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

ADDITIONAL INFORMATION
Comment 1 David Edmundson 2019-06-09 16:45:03 UTC
screenshot at least please.
Comment 2 wsrh456 2019-06-09 16:49:51 UTC
Created attachment 120730 [details]
Analogue Clock displays '2' instead of '23'
Comment 3 wsrh456 2019-06-09 16:50:32 UTC
Whoops, I've submitted an empty bug report accidentally. Below is the full report.


SUMMARY
When randomly playing with the Analogue Clock widget I found out it doesn't display '3' on the left side in some dates (03, 13, 23).

STEPS TO REPRODUCE
1. Open Analogue Clock
2. Click on any date that ends with '3'

OBSERVED RESULT
The date is displayed without the '3' (for example '0' instead of '03')

EXPECTED RESULT
The date is displayed correctly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 19.04
(available in About System)
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
none
Comment 4 Bug Janitor Service 2019-06-24 04:33:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Christoph Feck 2019-06-25 13:46:09 UTC
New information was provided with comment #2 and comment #3; changing status for inspection.
Comment 6 Christoph Feck 2019-07-03 21:15:15 UTC
Possible reason: The needed width is calculated with QFontMetrics::width() instead of QFontMetricsF::boundingRect().toAlignedRect().width().
Comment 7 Nate Graham 2021-08-07 18:35:16 UTC
Fixed in the redesign a few Plasma versions ago.