summaryrefslogtreecommitdiffstats
path: root/generic/tkTextMark.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2005-07-18 22:11:59 (GMT)
committervincentdarley <vincentdarley>2005-07-18 22:11:59 (GMT)
commit3c996e73d6bb73987fb0111bfd20040fb7cc6715 (patch)
treebbe4da957a89759d8e5e54a83251d82987a132c8 /generic/tkTextMark.c
parenta2b4a75e74b95eaea3e881761f6c79ee0ad2d12a (diff)
downloadtk-3c996e73d6bb73987fb0111bfd20040fb7cc6715.zip
tk-3c996e73d6bb73987fb0111bfd20040fb7cc6715.tar.gz
tk-3c996e73d6bb73987fb0111bfd20040fb7cc6715.tar.bz2
fix to text widget 'mark prev' segfault
Diffstat (limited to 'generic/tkTextMark.c')
-rw-r--r--generic/tkTextMark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkTextMark.c b/generic/tkTextMark.c
index 234ccd7..0c56b4a 100644
--- a/generic/tkTextMark.c
+++ b/generic/tkTextMark.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: tkTextMark.c,v 1.13 2004/10/05 01:26:10 hobbs Exp $
+ * RCS: @(#) $Id: tkTextMark.c,v 1.14 2005/07/18 22:12:05 vincentdarley Exp $
*/
#include "tkInt.h"
@@ -883,7 +883,7 @@ MarkFindPrev(interp, textPtr, string)
Tcl_SetResult(interp, "current", TCL_STATIC);
} else if (prevPtr == textPtr->insertMarkPtr) {
Tcl_SetResult(interp, "insert", TCL_STATIC);
- } else if (segPtr->body.mark.textPtr != textPtr) {
+ } else if (prevPtr->body.mark.textPtr != textPtr) {
/* Ignore widget-specific marks for the other widgets */
continue;
} else {