X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4116c2215676be5c8372276fa133e9d5dba5efce..6d9022fe3bb50a75b9b5eaf5cf32558e518ba310:/src/mac/window.cpp?ds=sidebyside diff --git a/src/mac/window.cpp b/src/mac/window.cpp index 8cd9a947a1..fd36642550 100644 --- a/src/mac/window.cpp +++ b/src/mac/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) @@ -1447,10 +1457,12 @@ void wxWindowMac::Update() if ( win ) { win->MacUpdate( 0 ) ; +#if TARGET_API_MAC_CARBON if ( QDIsPortBuffered( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) ) ) { QDFlushPortBuffer( GetWindowPort( (WindowRef) win->MacGetWindowRef() ) , NULL ) ; } +#endif } }