Fix for setSelection( htmlDocument().createRange() )

Marc Mutz mutz at kde.org
Fri Nov 5 08:15:45 GMT 2004


On Friday 05 November 2004 02:36, David Faure wrote:
<snip>
> +    if ( r.startContainer() == document() && r.endContainer() ==
> document() && r.startOffset() == 0 && r.endOffset() == 0 )
> +        slotClearSelection();
<snip>

Should this not be

if ( r.startContainer() == r.endContainer() &&
   r.startOffset() == r.endOffset() )

so that _any_ empty range clears the selection?




More information about the kfm-devel mailing list