From: Vadim Zeitlin Date: Mon, 30 Oct 2006 21:53:52 +0000 (+0000) Subject: don't need to check if we set the same cursor before setting it: SetCursor() already... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e4ef49c7a74bcff39a112b2171413c664d1207e1 don't need to check if we set the same cursor before setting it: SetCursor() already checks for this anyhow git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index 88008daa7f..05f6ed4999 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -426,13 +426,11 @@ void wxRichTextCtrl::OnMoveMouse(wxMouseEvent& event) { if (attr.HasFlag(wxTEXT_ATTR_URL)) { - if (!GetCursor().IsRefTo(&m_urlCursor)) - SetCursor(m_urlCursor); + SetCursor(m_urlCursor); } else if (!attr.HasFlag(wxTEXT_ATTR_URL)) { - if (!GetCursor().IsRefTo(&m_textCursor)) - SetCursor(m_textCursor); + SetCursor(m_textCursor); } } }