summaryrefslogtreecommitdiffstats
path: root/generic/tkOldConfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkOldConfig.c')
-rw-r--r--generic/tkOldConfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkOldConfig.c b/generic/tkOldConfig.c
index b506e3d..0f22e3b 100644
--- a/generic/tkOldConfig.c
+++ b/generic/tkOldConfig.c
@@ -520,7 +520,7 @@ DoConfig(
case TK_CONFIG_PIXELS:
if (nullValue) {
*(int *)ptr = INT_MIN;
- } if (Tk_GetPixels(interp, tkwin, value, (int *)ptr)
+ } else if (Tk_GetPixels(interp, tkwin, value, (int *)ptr)
!= TCL_OK) {
return TCL_ERROR;
}