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:
@@ -426,13 +426,11 @@ void wxRichTextCtrl::OnMoveMouse(wxMouseEvent& event)
|
|||||||
{
|
{
|
||||||
if (attr.HasFlag(wxTEXT_ATTR_URL))
|
if (attr.HasFlag(wxTEXT_ATTR_URL))
|
||||||
{
|
{
|
||||||
if (!GetCursor().IsRefTo(&m_urlCursor))
|
SetCursor(m_urlCursor);
|
||||||
SetCursor(m_urlCursor);
|
|
||||||
}
|
}
|
||||||
else if (!attr.HasFlag(wxTEXT_ATTR_URL))
|
else if (!attr.HasFlag(wxTEXT_ATTR_URL))
|
||||||
{
|
{
|
||||||
if (!GetCursor().IsRefTo(&m_textCursor))
|
SetCursor(m_textCursor);
|
||||||
SetCursor(m_textCursor);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user