fixed copy/paste error

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2002-12-16 23:08:31 +00:00
parent fdec65df6d
commit 5bab6390a9

View File

@ -872,14 +872,15 @@ wxWindowDisabler::~wxWindowDisabler()
// Yield to other apps/messages and disable user input to all windows except
// the given one
bool wxSafeYield(wxWindow *win, bool onlyIfNeeded = FALSE)
bool wxSafeYield(wxWindow *win, bool onlyIfNeeded)
{
wxWindowDisabler wd(win);
bool rc
if (onlyIfNeeded)
bool rc = wxYieldIfNeeded();
rc = wxYieldIfNeeded();
else
bool rc = wxYield();
rc = wxYield();
return rc;
}