Bug 208857

Summary: copying text selection to clipboard adds adjacent characters from outside selection
Product: [Applications] okular Reporter: Zen <cerebralpandemics>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: sample pdf for clipboard copying bug

Description Zen 2009-09-29 11:48:09 UTC
Version:            (using KDE 4.3.1)
OS:                Linux
Installed from:    SuSE RPMs

The two characters directly adjacent to a text selection on both sides are erroneously included in text copied to the clipboard.
Comment 1 Albert Astals Cid 2009-10-05 20:07:54 UTC
What kind of text selection are you using? word processor like or the one that lets you select a free area?
Comment 2 Zen 2009-10-11 12:32:05 UTC
The word processor style "Text Selection Tool".
Comment 3 Albert Astals Cid 2009-10-19 00:36:44 UTC
Can you attach the file with this problem?
Comment 4 Zen 2009-11-09 23:06:02 UTC
Created attachment 38216 [details]
sample pdf for clipboard copying bug

For example on the first page, in the title, try selecting "SHI" from the word Bushido. Copying and pasting the selection to Kate produces "USHID".
Comment 5 Albert Astals Cid 2009-11-12 22:57:03 UTC
SVN commit 1048200 by aacid:

Use the just created Okular::TextPage::CentralPixelTextAreaInclusionBehaviour flag when copying text selected with the text selection tool
so we include the text the user really selected
BUGS: 208857


 M  +4 -4      pageview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1048200