From 497e9cc2059d61d104050b8fdd54a72fbd7f121e Mon Sep 17 00:00:00 2001 From: das Date: Wed, 10 Dec 2008 04:27:45 +0000 Subject: TkMakeEnsemble(): support for NULL subensemble --- generic/tkUtil.c | 4 ++-- 1 file 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); } -- cgit v0.12