diff options
author | vincentdarley <vincentdarley> | 2006-04-05 17:16:28 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2006-04-05 17:16:28 (GMT) |
commit | 3bdb973764ec36da1e05c457c564a66210d9de52 (patch) | |
tree | aa106cbf489f4de5403824144abb3c9d31434a87 /generic/tkText.c | |
parent | 1563393aa453cc39f727115207662e041768972f (diff) | |
download | tk-3bdb973764ec36da1e05c457c564a66210d9de52.zip tk-3bdb973764ec36da1e05c457c564a66210d9de52.tar.gz tk-3bdb973764ec36da1e05c457c564a66210d9de52.tar.bz2 |
fix to crash in test suite, with dump -command
Diffstat (limited to 'generic/tkText.c')
-rw-r--r-- | generic/tkText.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index fb45e66..aeb40bb 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkText.c,v 1.67 2006/03/28 19:26:52 vincentdarley Exp $ + * RCS: @(#) $Id: tkText.c,v 1.68 2006/04/05 17:16:29 vincentdarley Exp $ */ #include "default.h" @@ -4803,7 +4803,8 @@ DumpSegment(textPtr, interp, key, value, command, index, what) list = Tcl_Merge(3, argv); Tcl_VarEval(interp, Tcl_GetString(command), " ", list, NULL); ckfree(list); - if (TkBTreeEpoch(textPtr->sharedTextPtr->tree) != oldStateEpoch) { + if ((textPtr->flags & DESTROYED) + || (TkBTreeEpoch(textPtr->sharedTextPtr->tree) != oldStateEpoch)) { return 1; } else { return 0; |