Bug 213246

Summary: khtml selecting half letters
Product: [Applications] konqueror Reporter: esigra
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: finex, germain
Priority: NOR    
Version: 4.3.1   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot.

Description esigra 2009-11-05 13:53:52 UTC
Version:           4.3.1 (using KDE 4.3.1)
OS:                Linux
Installed from:    Gentoo Packages

Go to [http://techbase.kde.org/Getting_Started/Sources/Anonymous_SVN] and select text as shown in the attached screenshot. (It may require the same screen DPI and font setting as I have to reproduce.)
Comment 1 esigra 2009-11-05 13:54:42 UTC
Created attachment 38112 [details]
Screenshot.
Comment 2 FiNeX 2009-11-29 22:51:24 UTC
Is bug #216092 a duplicate of this bug?
Comment 3 Germain Garand 2009-11-30 05:36:17 UTC
@FiNeX no, this bug is independent, I'll commit a fix for this in a moment.
Comment 4 Germain Garand 2009-11-30 06:06:26 UTC
SVN commit 1056420 by ggarand:

. convert the Selection's DOM offsets to Rendered offsets before using them
  on the rendered string (#166241, #216092)
. use slow font width algorithm when drawing selection for more accurate
  placement (#213246)

BUG: 166241
BUG: 216092
BUG: 213246

 M  +10 -7     khtml_part.cpp  
 M  +3 -3      rendering/render_text.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1056420
Comment 5 FiNeX 2009-11-30 11:58:48 UTC
Ok, thanks :)