Summary: | Okular text selection glitch confuses beginning and end of selection in PDFs | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Adam Fontenot <adam.m.fontenot+kde> |
Component: | general | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | e.insafutdinov, liusishun5, nate |
Priority: | NOR | Keywords: | qt6 |
Version: | 24.02.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/okular/-/commit/7a3af04b9e08bdedb6ce6d2e5a853c93ae5dc2ee | Version Fixed In: | 24.02.1 |
Attachments: | screencast showing the issue |
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/935 Git commit 717751a1f1940c39f833fd0ec69fbdc4621e60db by Albert Astals Cid, on behalf of Sune Vuorela. Committed on 05/03/2024 at 21:07. Pushed by aacid into branch 'master'. Fix multiline selection In qt6, QRect::normalized changed it's meaning and it now has a 'span' that preserves the old meaning. Use the old span to get the old version of normalized so we can match on the corners once again. see https://codereview.qt-project.org/c/qt/qtbase/+/309932 for details. M +62 -0 autotests/parttest.cpp M +1 -1 part/pageview.cpp https://invent.kde.org/graphics/okular/-/commit/717751a1f1940c39f833fd0ec69fbdc4621e60db Git commit 7a3af04b9e08bdedb6ce6d2e5a853c93ae5dc2ee by Albert Astals Cid, on behalf of Sune Vuorela. Committed on 05/03/2024 at 23:01. Pushed by aacid into branch 'release/24.02'. Fix multiline selection In qt6, QRect::normalized changed it's meaning and it now has a 'span' that preserves the old meaning. Use the old span to get the old version of normalized so we can match on the corners once again. see https://codereview.qt-project.org/c/qt/qtbase/+/309932 for details. (cherry picked from commit 717751a1f1940c39f833fd0ec69fbdc4621e60db) M +62 -0 autotests/parttest.cpp M +1 -1 part/pageview.cpp https://invent.kde.org/graphics/okular/-/commit/7a3af04b9e08bdedb6ce6d2e5a853c93ae5dc2ee *** Bug 483968 has been marked as a duplicate of this bug. *** *** Bug 484455 has been marked as a duplicate of this bug. *** |
Created attachment 166317 [details] screencast showing the issue SUMMARY This is Okular 24.02.0, not 24.01.95. I realize PDFs can be fickle, but this issue is consistent across all PDFs I've tested, including some very basic ones. Copy your favorite "lorem ipsum" text into a LibreOffice Writer document, export it to PDF, and you should be able to reproduce this issue. STEPS TO REPRODUCE 1. Start selecting some text by clicking on a line in the document, and then dragging down to select multiple lines or sentences. 2. While continuing to hold down the mouse button, drag to the left (further left than you began the selection on the top line). OBSERVED RESULT The *starting* point of the selection changes (is moved left). EXPECTED RESULT The *ending* point of the selection changes, on the final line of the selection. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.0.0 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.7.6-arch1-1 (64-bit) Graphics Platform: Wayland