diff options
author | fvogelnew1@free.fr <fvogel> | 2015-06-01 18:30:54 (GMT) |
---|---|---|
committer | fvogelnew1@free.fr <fvogel> | 2015-06-01 18:30:54 (GMT) |
commit | 7d88d3ef723450274d2b0163402f58088301da80 (patch) | |
tree | 920a4a334af45292ce58ff5bd6b782aabccee817 | |
parent | 671327ad7754a5308324a87c879c1734c0205aa3 (diff) | |
parent | f6a10fb9c41d1dc23d0c24285a062e9643883d2c (diff) | |
download | tk-7d88d3ef723450274d2b0163402f58088301da80.zip tk-7d88d3ef723450274d2b0163402f58088301da80.tar.gz tk-7d88d3ef723450274d2b0163402f58088301da80.tar.bz2 |
Fixed bug [2368195fff] - More correct error handling when calling paneconfigure with a non existing window
-rw-r--r-- | generic/tkPanedWindow.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c index e07fc51..81bcbb0 100644 --- a/generic/tkPanedWindow.c +++ b/generic/tkPanedWindow.c @@ -678,6 +678,15 @@ PanedWindowWidgetObjCmd( if (objc <= 4) { tkwin = Tk_NameToWindow(interp, Tcl_GetString(objv[2]), pwPtr->tkwin); + if (tkwin == NULL) { + /* + * Just a plain old bad window; Tk_NameToWindow filled in an + * error message for us. + */ + + result = TCL_ERROR; + break; + } for (i = 0; i < pwPtr->numSlaves; i++) { if (pwPtr->slaves[i]->tkwin == tkwin) { resultObj = Tk_GetOptionInfo(interp, |