mshtml: Fix inserting a hyperlink when text is already selected.
Robert Shearman
rob at codeweavers.com
Fri Feb 8 06:17:10 CST 2008
There is no need to use cmd_insertLinkNoUI when we have the code to do
most of the action anyway. Make use of the handy
InsertLinkAroundSelection to insert the "a" element when not inserting
at the caret and don't create a text node in this case because it is
redundant.
---
dlls/mshtml/editor.c | 64
++++++++++++++++++++++++-------------------------
1 files changed, 31 insertions(+), 33 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d90a1285d1e81459f77bb42392c6b286b6fc6a29.diff
Type: text/x-patch
Size: 4526 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080208/f93f3dc7/attachment.bin
More information about the wine-patches
mailing list