From fed4c3f6d3667fc459c05f893001655dfa0a1d82 Mon Sep 17 00:00:00 2001 From: "dgp@users.sourceforge.net" Date: Tue, 7 Jun 2011 21:30:29 +0000 Subject: correction --- win/tkWinDialog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c index ce23703..c275f68 100644 --- a/win/tkWinDialog.c +++ b/win/tkWinDialog.c @@ -2371,6 +2371,9 @@ Tk_MessageBoxObjCmd( } } + while (!Tk_IsTopLevel(parent)) { + parent = Tk_Parent(parent); + } Tk_MakeWindowExist(parent); hWnd = Tk_GetHWND(Tk_WindowId(parent)); -- cgit v0.12