summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordas <das>2008-12-10 04:27:45 (GMT)
committerdas <das>2008-12-10 04:27:45 (GMT)
commit497e9cc2059d61d104050b8fdd54a72fbd7f121e (patch)
tree7df86c5f839efe2f96bd920474a298a2e37a4c9b
parent4681d71cefe2f29d8ebf38878fbb5bdbd13d93b3 (diff)
downloadtk-497e9cc2059d61d104050b8fdd54a72fbd7f121e.zip
tk-497e9cc2059d61d104050b8fdd54a72fbd7f121e.tar.gz
tk-497e9cc2059d61d104050b8fdd54a72fbd7f121e.tar.bz2
TkMakeEnsemble(): support for NULL subensemble
-rw-r--r--generic/tkUtil.c4
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);
}