diff options
author | dgp <dgp@users.sourceforge.net> | 2011-06-07 21:30:29 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2011-06-07 21:30:29 (GMT) |
commit | 5a29e8847dba95095530b9e4afa0c5ae14937c64 (patch) | |
tree | a560f794434437e227087c4687b28eb901682d73 | |
parent | d73ef045682f0b429f7dee776e8851229855133a (diff) | |
download | tk-5a29e8847dba95095530b9e4afa0c5ae14937c64.zip tk-5a29e8847dba95095530b9e4afa0c5ae14937c64.tar.gz tk-5a29e8847dba95095530b9e4afa0c5ae14937c64.tar.bz2 |
correction
-rw-r--r-- | win/tkWinDialog.c | 3 |
1 files changed, 3 insertions, 0 deletions
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)); |