richedit: Respect manually added links when autourldetect is disabled.
commitfdb37491386dc2a21717e38ec60309437da9e2e9
authorDylan Smith <dylan.ah.smith@gmail.com>
Mon, 9 Mar 2009 07:01:00 +0000 (9 03:01 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 9 Mar 2009 11:28:33 +0000 (9 12:28 +0100)
treede08b2057429b78111d1e5e5294a22edb4a4aad9
parent728a738a824f19fa72e098e1034d9698d28dd190
richedit: Respect manually added links when autourldetect is disabled.

EM_SETCHARFORMAT can be used to make text links.  Automatic URL
detection being enable would cause these links to be removed if the text
is not a URL, so this must be prevented.

Previously checks were made for AutoURLDetect_bEnable before calling
ME_UpdateSelectionLinkAttribute, or ME_UpdateLinkAttribute.  This is
more error prone than checking for this within the function, so one call
was missing this check.

ME_SetCursor also didn't respect this behaviour, since it wouldn't set
the cursor to the hand when hovering over a link without automatic URL
detection disabled.
dlls/riched20/editor.c