]> git.saurik.com Git - wxWidgets.git/commitdiff
Remvoed a yield in HitTest because of undesirable consequences
authorJulian Smart <julian@anthemion.co.uk>
Tue, 1 May 2001 17:05:15 +0000 (17:05 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 1 May 2001 17:05:15 +0000 (17:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp

index 9a623fa386d55f3d94e9daaada33b6eceebaebdc..0577780a856b5f5a0915b24eb5aa9c3402dc987b 100644 (file)
@@ -2226,7 +2226,9 @@ wxTreeItemId wxGenericTreeCtrl::HitTest(const wxPoint& point, int& flags)
     // We have to call this here because the label in
     // question might just have been added and no screen
     // update taken place.
-    if (m_dirty) wxYieldIfNeeded();
+    // JACS: removed this because the yield can cause the window to be
+    // deleted from under us if a close window event is pending
+    // if (m_dirty) wxYieldIfNeeded();
 
     wxClientDC dc(this);
     PrepareDC(dc);