X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9467bdb7f5bfde9f99331097daacb93564ca122e..f13a38a5fae79b1416c97e9ffde8b51016924512:/src/univ/checkbox.cpp?ds=inline

diff --git a/src/univ/checkbox.cpp b/src/univ/checkbox.cpp
index de5865cb84..520a2edf05 100644
--- a/src/univ/checkbox.cpp
+++ b/src/univ/checkbox.cpp
@@ -84,7 +84,7 @@ bool wxCheckBox::Create(wxWindow *parent,
         return false;
 
     SetLabel(label);
-    SetBestSize(size);
+    SetInitialSize(size);
 
     CreateInputHandler(wxINP_HANDLER_CHECKBOX);