[Okular-devel] [Bug 249364] New: PATCH: Fit best (best-fit) zoom
Thomas Fischer
fischer at unix-ag.uni-kl.de
Sun Aug 29 00:14:14 CEST 2010
https://bugs.kde.org/show_bug.cgi?id=249364
Summary: PATCH: Fit best (best-fit) zoom
Product: okular
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: wishlist
Priority: NOR
Component: general
AssignedTo: okular-devel at kde.org
ReportedBy: fischer at unix-ag.uni-kl.de
Created an attachment (id=51069)
--> (http://bugs.kde.org/attachment.cgi?id=51069)
Best-fit zoom option, mostly diff against kdegraphics/okular/ui/pageview.cpp
Version: unspecified (using Devel)
OS: Linux
I have written a small patch for Okular's ui/pageview.cpp which adds "Fit Best"
as one of the zooming options. This new zoom option compares the current page's
aspect ratio with the window's aspect ratio and switches effectively between
fit-width, fit-height, and fit-page.
The code reuses partially the (no longer) not used "Fit Text" code, adds some
new lines, and enhances the infinite resizing loop patch to cover the new zoom
option, too.
Reproducible: Always
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Okular-devel
mailing list