Created attachment 140271 [details] okular video SUMMARY Zoom out button not greyed out when PDF document is opened when reaching the maximum zoom out percentage(12%). Please see the attached video. STEPS TO REPRODUCE 1. open a PDF file in okular 2. click zoom out button until the content is not zooming out 3. OBSERVED RESULT Zoom out button is not greyed out when reaching maximum zoom out percentage. EXPECTED RESULT Zoom out button is greyed out when reaching maximum zoom out percentage. SOFTWARE/OS VERSIONS Operating System: KDE neon 5.22 KDE Plasma Version: 5.22.3 KDE Frameworks Version: 5.84.0 Qt Version: 5.15.3 Kernel Version: 5.8.0-63-generic (64-bit) Graphics Platform: X11 Processors: 4 × Intel® Core™ i3-5010U CPU @ 2.10GHz Memory: 3.8 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 5500 ADDITIONAL INFORMATION
Actually, the lower bound to grey out the button is 10.1%. https://invent.kde.org/graphics/okular/-/blob/master/part/pageview.cpp#L3889 There might be a logical problem here...
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/502
Git commit 975bf990edbd920bbbe326b1519945f7e859c4f6 by Albert Astals Cid. Committed on 23/11/2021 at 19:46. Pushed by aacid into branch 'release/21.12'. Fix zoom actions not being updated correctly M +33 -22 part/pageview.cpp M +2 -0 part/pageview.h https://invent.kde.org/graphics/okular/commit/975bf990edbd920bbbe326b1519945f7e859c4f6