X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54ffa10747e51b9fa8c52b7f864e187e82fd4919..e3bfcacf3aa7f7e94f28e09fc75510e894095f87:/src/os2/textctrl.cpp diff --git a/src/os2/textctrl.cpp b/src/os2/textctrl.cpp index 4070a29689..66b4819ebb 100644 --- a/src/os2/textctrl.cpp +++ b/src/os2/textctrl.cpp @@ -208,16 +208,7 @@ bool wxTextCtrl::Create( // // Set font, position, size and initial value // - wxFont& vFontParent = pParent->GetFont(); - - if (vFontParent.Ok()) - { - SetFont(vFontParent); - } - else - { - SetFont(wxSystemSettings::GetFont(wxSYS_SYSTEM_FONT)); - } + SetFont(*wxSMALL_FONT); if (!rsValue.IsEmpty()) { SetValue(rsValue);