Changed SetBestSize to SetInitialSize.

This prevents a wxWidgets deprecated warning.
This commit is contained in:
Peter J. Stieber
2016-01-08 20:16:51 -08:00
parent 7fc0742dfd
commit f648d61f54

View File

@@ -216,7 +216,7 @@ bool wxSTEditor::Create( wxWindow *WXUNUSED(parent), wxWindowID WXUNUSED(id),
#endif // wxCHECK_VERSION(2,5,0)
if ((size.x > 0) && (size.y > 0))
SetBestSize(size);
SetInitialSize(size);
if (CanPaste())
m_state |= STE_CANPASTE;