]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/stc.cpp
Correct names of some event binders
[wxWidgets.git] / src / stc / stc.cpp
index bc54bf966ca796c45430a192f3600b658e851c75..0bf46f60b46edcf52e0a3496ba3160bab7230ae7 100644 (file)
@@ -179,7 +179,7 @@ bool wxStyledTextCtrl::Create(wxWindow *parent,
     SetCodePage(wxSTC_CP_UTF8);
 #endif
 
     SetCodePage(wxSTC_CP_UTF8);
 #endif
 
-    SetBestFittingSize(size);
+    SetInitialSize(size);
 
     // Reduces flicker on GTK+/X11
     SetBackgroundStyle(wxBG_STYLE_CUSTOM);
 
     // Reduces flicker on GTK+/X11
     SetBackgroundStyle(wxBG_STYLE_CUSTOM);