fix positioning bug with window disabler and hidden windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -307,6 +307,11 @@ void wxGUIEventLoop::BeginModalSession( wxWindow* modalWindow )
|
|||||||
|
|
||||||
if ( modalWindow )
|
if ( modalWindow )
|
||||||
{
|
{
|
||||||
|
// we must show now, otherwise beginModalSessionForWindow does it but it
|
||||||
|
// also would do a centering of the window before overriding all our position
|
||||||
|
if ( !modalWindow->IsShownOnScreen() )
|
||||||
|
modalWindow->Show();
|
||||||
|
|
||||||
wxNonOwnedWindow* now = dynamic_cast<wxNonOwnedWindow*> (modalWindow);
|
wxNonOwnedWindow* now = dynamic_cast<wxNonOwnedWindow*> (modalWindow);
|
||||||
wxASSERT_MSG( now != NULL, "must pass in a toplevel window for modal event loop" );
|
wxASSERT_MSG( now != NULL, "must pass in a toplevel window for modal event loop" );
|
||||||
nsnow = now ? now->GetWXWindow() : nil;
|
nsnow = now ? now->GetWXWindow() : nil;
|
||||||
|
Reference in New Issue
Block a user