From 3d5aff50cb85e5b3299bf046d185b172bd488f08 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 1 May 2001 17:05:15 +0000 Subject: [PATCH] Remvoed a yield in HitTest because of undesirable consequences git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/treectlg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 9a623fa386..0577780a85 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -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); -- 2.45.2