X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/833cce0628dcad21147e75de1afa8afe4a5c86a2..478db4fc86449294bb28500b646c0825d1c2655a:/src/richtext/richtextctrl.cpp diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index 88008daa7f..636c494439 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -157,7 +157,7 @@ bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& va SetBackgroundStyle(wxBG_STYLE_CUSTOM); // Tell the sizers to use the given or best size - SetBestFittingSize(size); + SetInitialSize(size); #if wxRICHTEXT_BUFFERED_PAINTING // Create a buffer @@ -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); } } }