summaryrefslogtreecommitdiffstats
path: root/generic/tkEntry.c
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2002-10-02 20:59:25 (GMT)
committerhobbs <hobbs@noemail.net>2002-10-02 20:59:25 (GMT)
commit12088cb334c90fa0101f8e2288996ee48ebadadb (patch)
tree8217af7d57954b413033a928a2ac4d64c9a7c6e7 /generic/tkEntry.c
parenta9098d4711617c282fbf49b57779e0e9ab247d2d (diff)
downloadtk-12088cb334c90fa0101f8e2288996ee48ebadadb.zip
tk-12088cb334c90fa0101f8e2288996ee48ebadadb.tar.gz
tk-12088cb334c90fa0101f8e2288996ee48ebadadb.tar.bz2
* tests/entry.test: added entry-20.7
* generic/tkEntry.c (EntryTextVarProc): check if the entry if being deleted before handling an associated textvariable. [Bug #607390 #617446] FossilOrigin-Name: da2373146719071cf388866028167bd6f8385cf4
Diffstat (limited to 'generic/tkEntry.c')
-rw-r--r--generic/tkEntry.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/generic/tkEntry.c b/generic/tkEntry.c
index 53e0d60..51c459c 100644
--- a/generic/tkEntry.c
+++ b/generic/tkEntry.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkEntry.c,v 1.31 2002/08/05 04:30:38 dgp Exp $
+ * RCS: @(#) $Id: tkEntry.c,v 1.32 2002/10/02 20:59:26 hobbs Exp $
*/
#include "tkInt.h"
@@ -3295,6 +3295,13 @@ EntryTextVarProc(clientData, interp, name1, name2, flags)
Entry *entryPtr = (Entry *) clientData;
CONST char *value;
+ if (entryPtr->flags & ENTRY_DELETED) {
+ /*
+ * Just abort early if we entered here while being deleted.
+ */
+ return (char *) NULL;
+ }
+
/*
* If the variable is unset, then immediately recreate it unless
* the whole interpreter is going away.