Bug 434028

Summary: Year 0 in the Calendar component is broken
Product: [Frameworks and Libraries] libplasma Reporter: Vojtěch Bartoň <gamingforyou875>
Component: componentsAssignee: Marco Martin <notmart>
Status: CONFIRMED ---    
Severity: minor CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.84.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Year 0 week view

Description Vojtěch Bartoň 2021-03-05 20:20:26 UTC
Created attachment 136411 [details]
Year 0 week view

SUMMARY
The difference between this bug report and the one I opened a little while ago, is that this time, you have to have "Astronomical Events" and "Holidays" turned OFF. The bug sure is interesting (nonsense.png).

STEPS TO REPRODUCE
1. Scroll back to year 0 - 9 (from the decade view).
2. Click on year 10 (between year -1 and 1)

OBSERVED RESULT
The name of the year in the week view turns into Nan. Going into the week view utterly breaks everything.

EXPECTED RESULT
Show year 0 properly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 5.11.1, KDE Plasma 5.21.1
(available in About System)
KDE Plasma Version: 5.21.1
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I know I shouldn't be proposing solutions, but the 3 bug reports I opened could be fixed easily by not allowing the user to scroll past for example the 1900s.