summaryrefslogtreecommitdiffstats
path: root/generic/tkGrid.c
diff options
context:
space:
mode:
authorpeter.spjuth@gmail.com <pspjuth>2001-08-18 20:03:16 (GMT)
committerpeter.spjuth@gmail.com <pspjuth>2001-08-18 20:03:16 (GMT)
commit0cfda40768db772a71964c63fbbd86504013be44 (patch)
tree08d8c782e9942c3828ce6daa40ba7de28cc34139 /generic/tkGrid.c
parent69de8a4a944ed7d54ed7ea755a571ae6c840ead6 (diff)
downloadtk-0cfda40768db772a71964c63fbbd86504013be44.zip
tk-0cfda40768db772a71964c63fbbd86504013be44.tar.gz
tk-0cfda40768db772a71964c63fbbd86504013be44.tar.bz2
Grid configure rejected initial "x" and "^". [Bug #418664]
Diffstat (limited to 'generic/tkGrid.c')
-rw-r--r--generic/tkGrid.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkGrid.c b/generic/tkGrid.c
index 0d176f5..6685f53 100644
--- a/generic/tkGrid.c
+++ b/generic/tkGrid.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkGrid.c,v 1.11 2001/02/12 18:06:47 drh Exp $
+ * RCS: @(#) $Id: tkGrid.c,v 1.12 2001/08/18 20:03:16 pspjuth Exp $
*/
#include "tkInt.h"
@@ -328,7 +328,8 @@ Tk_GridCmd(clientData, interp, argc, argv)
return GridBboxCommand(tkwin, interp, argc, argv);
} else if ((c == 'c') && (strncmp(argv[1], "configure", length) == 0)) {
- if (argv[2][0] != '.') {
+ if ((argv[2][0] != '.') && (argv[2][0] != REL_SKIP) &&
+ (argv[2][0] != REL_VERT)) {
Tcl_AppendResult(interp, "bad argument \"", argv[2],
"\": must be name of window", (char *) NULL);
return TCL_ERROR;