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
This commit is contained in:
Vadim Zeitlin
2006-10-30 21:53:52 +00:00
parent 88df9199da
commit e4ef49c7a7

View 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);
}
}
}