]> git.saurik.com Git - wxWidgets.git/commitdiff
don't need to check if we set the same cursor before setting it: SetCursor() already...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Oct 2006 21:53:52 +0000 (21:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Oct 2006 21:53:52 +0000 (21:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextctrl.cpp

index 88008daa7f624557b875ad25baa8e64aa9262bfd..05f6ed499914830fca073d02d08c45688bf67a1b 100644 (file)
@@ -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);
                 }
             }
         }