Bug 440173

Summary: Zoom out button not greyed out when PDF document is opened
Product: [Applications] okular Reporter: Mohammed Sameer <glifwentry>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal CC: nate, yurchor
Priority: NOR    
Version: 21.04.3   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: okular video

Description Mohammed Sameer 2021-07-23 05:47:32 UTC
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
Comment 1 Yuri Chornoivan 2021-07-23 09:26:53 UTC
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...
Comment 2 Bug Janitor Service 2021-11-08 16:35:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/502
Comment 3 Albert Astals Cid 2021-11-23 23:35:39 UTC
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