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)
commit0bd5a6ec34b8681f9b596ee0aa483b94e6c46a32 (patch)
treee2fd1d01723c9d5d15fe8a9041725a4b7a4a9e87
parentc0ec1f8323d0a378775feeddb299f50e1fcdd67f (diff)
parent0e9db7c160616a0c10b8b97ea991d70b0fa34a9e (diff)
downloadtk-0bd5a6ec34b8681f9b596ee0aa483b94e6c46a32.zip
tk-0bd5a6ec34b8681f9b596ee0aa483b94e6c46a32.tar.gz
tk-0bd5a6ec34b8681f9b596ee0aa483b94e6c46a32.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,