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)
commit2b77ae2ece89d9963b4734eb536175bec25f88f1 (patch)
treebbe4da957a89759d8e5e54a83251d82987a132c8 /generic/tkTextMark.c
parente19d340f023e4ed337d8e8db1f927053f875d7e0 (diff)
downloadtk-2b77ae2ece89d9963b4734eb536175bec25f88f1.zip
tk-2b77ae2ece89d9963b4734eb536175bec25f88f1.tar.gz
tk-2b77ae2ece89d9963b4734eb536175bec25f88f1.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 {