diff options
Diffstat (limited to 'generic')
-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; |