summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2011-06-07 21:30:29 (GMT)
committerdgp@users.sourceforge.net <dgp>2011-06-07 21:30:29 (GMT)
commitfed4c3f6d3667fc459c05f893001655dfa0a1d82 (patch)
treea560f794434437e227087c4687b28eb901682d73
parentaac951abdb489b994d1795b3cd5fe5fd69c3a1c5 (diff)
downloadtk-fed4c3f6d3667fc459c05f893001655dfa0a1d82.zip
tk-fed4c3f6d3667fc459c05f893001655dfa0a1d82.tar.gz
tk-fed4c3f6d3667fc459c05f893001655dfa0a1d82.tar.bz2
correction
-rw-r--r--win/tkWinDialog.c3
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));