Bug 433828 - Bug with annotations on jpg or png when display scaling is enabled.
Summary: Bug with annotations on jpg or png when display scaling is enabled.
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.11.1
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-01 22:36 UTC by Éric Brunet
Modified: 2021-06-05 08:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 20.12


Attachments
Video of the bug in action (132.94 KB, video/x-matroska)
2021-03-01 22:36 UTC, Éric Brunet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Éric Brunet 2021-03-01 22:36:31 UTC
Created attachment 136303 [details]
Video of the bug in action

I have an uptodate fedora 33 computer, with okular-20.08.1-1.fc33.x86_64.rpm
(reporting as okular 1.11.1).

I have an issue which
1) occurs with .jpg and .png files, but not with .pdf files
2) occurs only when System Settings->Display Configuration->Global scale is not set to 100%. (Specifically: I have it set at 200%).

The bug is the following: when trying to use the "Freehand line" annotation tool, everything works correctly while I draw. But when the drawing ends (when I release the mouse button, or when I remove my finger from the touchscreen), the whole drawing gets dilated by a factor of 2 from the upper-left corner: all the coordinates are multiplied by 2.

I am attaching a small video to illustrate the problem.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Fedora 33 
KDE Plasma Version: plasma-desktop-5.20.5-1.fc33.x86_64
KDE Frameworks Version: kf5-kparts-5.79.0-2.fc33.x86_64
Qt Version: qt5-qtbase-5.15.2-2.fc33.x86_64
Comment 1 Laura David Hurka 2021-03-02 14:03:15 UTC
I can’t reproduce that with current Okular, but I think I fixed that with this commit:

commit 50df8ad877a51d479f602c3a519382cda02009c4
Author: David Hurka <david.hurka@mailbox.org>
Date:   Fri Jul 31 00:04:21 2020 +0000
Comment 2 Éric Brunet 2021-03-02 20:25:59 UTC
Ah, yes, thanks: from the description of the commit, this looks likely.

The commit is in okular-20-12, hopefully fedora will ship it at some time. When this happens, I'll confirm here whether the bug is fixed or not.

(There is a okular-20-12 in fedora rawhide, but this requires to upgrade also the glibc, and I'd rather not take any chance...)
Comment 3 Éric Brunet 2021-06-05 08:42:02 UTC
I have upgraded my fedora to version 34, I now have okular-20.12.2-2.fc34.x86_64,
and the problem is indeed fixed. Thanks!