Don't update scrollbars when the window is being destroyed in wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Nov 2010 21:39:29 +0000 (21:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Nov 2010 21:39:29 +0000 (21:39 +0000)
commit209a9f58224d3b76fea0d8ce2dc81cf2a5625128
treef19a0d0be30161102e913984162f42b723c0e248
parentdf7d93f67bae4a7598dc7058f90f35acb7bd584a
Don't update scrollbars when the window is being destroyed in wxOSX.

Updating scrollbars for a window that is being destroyed anyhow is useless and
resulted in crashes in the htlbox sample because it used client-to-screen
coordinates conversion which asserted because the TLW was invalid any more and
this unexpected assert during window destruction led to a crash.

Simply don't do it at all to avoid the problem.

Closes #11776.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/osx/window_osx.cpp