diff options
author | das <das> | 2008-12-10 04:27:45 (GMT) |
---|---|---|
committer | das <das> | 2008-12-10 04:27:45 (GMT) |
commit | ad2c7c74aa7da6cfd3089587abfdaa7a4942adac (patch) | |
tree | 7df86c5f839efe2f96bd920474a298a2e37a4c9b | |
parent | 9eb6510a4474af4884cb3c6908b80a7e77a58925 (diff) | |
download | tk-ad2c7c74aa7da6cfd3089587abfdaa7a4942adac.zip tk-ad2c7c74aa7da6cfd3089587abfdaa7a4942adac.tar.gz tk-ad2c7c74aa7da6cfd3089587abfdaa7a4942adac.tar.bz2 |
TkMakeEnsemble(): support for NULL subensemble
-rw-r--r-- | generic/tkUtil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkUtil.c b/generic/tkUtil.c index 4007ae8..8cfaf9a 100644 --- a/generic/tkUtil.c +++ b/generic/tkUtil.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkUtil.c,v 1.25 2008/12/10 00:34:51 das Exp $ + * RCS: @(#) $Id: tkUtil.c,v 1.26 2008/12/10 04:27:45 das Exp $ */ #include "tkInt.h" @@ -1047,7 +1047,7 @@ TkMakeEnsemble( if (map[i].proc) { Tcl_CreateObjCommand(interp, Tcl_GetString(fqdnObj), map[i].proc, clientData, NULL); - } else { + } else if (map[i].subensemble) { TkMakeEnsemble(interp, Tcl_DStringValue(&ds), map[i].name, clientData, map[i].subensemble); } |