Crash fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -196,6 +196,9 @@ wxSpinCtrl::~wxSpinCtrl()
|
|||||||
|
|
||||||
wxSize wxSpinCtrl::DoGetBestSize() const
|
wxSize wxSpinCtrl::DoGetBestSize() const
|
||||||
{
|
{
|
||||||
|
if (!m_btn || !m_text)
|
||||||
|
return GetSize();
|
||||||
|
|
||||||
wxSize sizeBtn = m_btn->GetBestSize(),
|
wxSize sizeBtn = m_btn->GetBestSize(),
|
||||||
sizeText = m_text->GetBestSize();
|
sizeText = m_text->GetBestSize();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user