diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index ad6bccb6ef..88008daa7f 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -426,12 +426,12 @@ void wxRichTextCtrl::OnMoveMouse(wxMouseEvent& event) { if (attr.HasFlag(wxTEXT_ATTR_URL)) { - if (GetCursor() != m_urlCursor) + if (!GetCursor().IsRefTo(&m_urlCursor)) SetCursor(m_urlCursor); } else if (!attr.HasFlag(wxTEXT_ATTR_URL)) { - if (GetCursor() != m_textCursor) + if (!GetCursor().IsRefTo(&m_textCursor)) SetCursor(m_textCursor); } }