Tried another fix for my wxTextCtrl crash. Stefan's
attempt had no effect and I didn't see any side effects of my change either. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1572,10 +1572,7 @@ bool wxTextCtrl::Show(bool show)
|
||||
|
||||
bool retval = wxControl::Show( show ) ;
|
||||
|
||||
WindowRef window = (WindowRef) MacGetRootWindow() ;
|
||||
wxWindowMac* win = wxFindWinFromMacWindow( window ) ;
|
||||
|
||||
if ( former != m_macControlIsShown && win!=NULL && !win->IsBeingDeleted() )
|
||||
if ( former != m_macControlIsShown && show )
|
||||
{
|
||||
if ( m_macControlIsShown )
|
||||
TXNSetFrameBounds( (TXNObject) m_macTXN, (**(STPTextPaneVars **)m_macTXNvars).fRTextArea.top, (**(STPTextPaneVars **)m_macTXNvars).fRTextArea.left,
|
||||
|
@@ -1572,10 +1572,7 @@ bool wxTextCtrl::Show(bool show)
|
||||
|
||||
bool retval = wxControl::Show( show ) ;
|
||||
|
||||
WindowRef window = (WindowRef) MacGetRootWindow() ;
|
||||
wxWindowMac* win = wxFindWinFromMacWindow( window ) ;
|
||||
|
||||
if ( former != m_macControlIsShown && win!=NULL && !win->IsBeingDeleted() )
|
||||
if ( former != m_macControlIsShown && show )
|
||||
{
|
||||
if ( m_macControlIsShown )
|
||||
TXNSetFrameBounds( (TXNObject) m_macTXN, (**(STPTextPaneVars **)m_macTXNvars).fRTextArea.top, (**(STPTextPaneVars **)m_macTXNvars).fRTextArea.left,
|
||||
|
Reference in New Issue
Block a user