Bug 408495

Summary: Trim to Selection does not work when the view is rotated
Product: [Applications] okular Reporter: Laura David Hurka <laura.stern>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 1.7.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Laura David Hurka 2019-06-09 17:25:16 UTC
SUMMARY
If the view is rotated (View -> Orientation), Trim to Selection does not work correctly.

STEPS TO REPRODUCE
1. Open a document.
2. Rotate it by 90° (View -> Orientation).
3. Activate Trim to Selection and draw a rectangle on the header of a page.

OBSERVED RESULT
The page is trimmed to a narrow portion at one side, so only the beginnings of all lines are visible. Behaves exactly as in Bug 334297.

EXPECTED RESULT
Page is trimmed to the drawn selection rectangle.

SOFTWARE/OS VERSIONS
Okular 1.7.2
KDE Neon 5.15
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.58.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
This causes the same issue as Bug 342003 (just tested).