RenderText::checkSelectionPoint
Allan Sandfeld Jensen
kde at carewolf.com
Thu Jan 6 12:43:39 GMT 2005
On Thursday 06 January 2005 13:05, John Tapsell wrote:
> Hi all,
> If you have html like litterally:
>
> >
> on Thursday January 06, @03:50AM (
>
> (taken from slashdot), you get a textImpl node with the text:
>
>
> on Thursday January 06, @03:50AM (
>
> When this is rendered, the \n[ \t]* gets stripped.
> This means that when you make a selection (e.g. "on") with the mouse, it
> reports the selection is from offset 2, as the rendered text is "> on
> Thu.."
>
> The copy to clipboard code uses this offset with the textImp Node value,
> and so starts just after then \n, in the middle of the spaces/tabs. This
> means when you paste, you get spaces.
>
Looks like the same bugs as #96412.
I have a quick patch ready, look at attachment, but it needs review.
`Allan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 96412.patch
Type: text/x-diff
Size: 2315 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050106/fea4257c/attachment.patch>
More information about the kfm-devel
mailing list