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
{
if (attr.HasFlag(wxTEXT_ATTR_URL))
{
- if (GetCursor() != m_urlCursor)
- SetCursor(m_urlCursor);
+ SetCursor(m_urlCursor);
}
else if (!attr.HasFlag(wxTEXT_ATTR_URL))
{
- if (GetCursor() != m_textCursor)
- SetCursor(m_textCursor);
+ SetCursor(m_textCursor);
}
}
}