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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user