summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-06-01 18:30:54 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-06-01 18:30:54 (GMT)
commitddb9a7aae8cd0e831b0edb4947628c6ea68cbb7d (patch)
tree920a4a334af45292ce58ff5bd6b782aabccee817 /generic
parent89c827c32604437abfae08f37b231d7a3e52ef6d (diff)
parentf9eca1efa16e7d2b60a937d096523abadbc7d8f6 (diff)
downloadtk-ddb9a7aae8cd0e831b0edb4947628c6ea68cbb7d.zip
tk-ddb9a7aae8cd0e831b0edb4947628c6ea68cbb7d.tar.gz
tk-ddb9a7aae8cd0e831b0edb4947628c6ea68cbb7d.tar.bz2
Fixed bug [2368195fff] - More correct error handling when calling paneconfigure with a non existing window
Diffstat (limited to 'generic')
-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,