summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2015-06-01 18:30:54 (GMT)
committerfvogelnew1@free.fr <fvogel>2015-06-01 18:30:54 (GMT)
commit7d88d3ef723450274d2b0163402f58088301da80 (patch)
tree920a4a334af45292ce58ff5bd6b782aabccee817
parent671327ad7754a5308324a87c879c1734c0205aa3 (diff)
parentf6a10fb9c41d1dc23d0c24285a062e9643883d2c (diff)
downloadtk-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.c9
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,