X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bec721ec75946b7659e104b637a4d1f45bef0997..4b04699b670b4ab4632229fa0264d154acd3bec1:/src/mac/carbon/window.cpp diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index ce34604fa1..fd36642550 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -1072,6 +1072,16 @@ void wxWindowMac::MacPaintBorders( int left , int top ) } } +void wxWindowMac::RemoveChild( wxWindowBase *child ) +{ + if ( child == m_hScrollBar ) + m_hScrollBar = NULL ; + if ( child == m_vScrollBar ) + m_vScrollBar = NULL ; + + wxWindowBase::RemoveChild( child ) ; +} + // New function that will replace some of the above. void wxWindowMac::SetScrollbar(int orient, int pos, int thumbVisible, int range, bool refresh)