summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvText.c
diff options
context:
space:
mode:
authorrjohnson <rjohnson>1999-04-20 22:28:52 (GMT)
committerrjohnson <rjohnson>1999-04-20 22:28:52 (GMT)
commit1c942064cf9b59db035a8eef8e4bc1b7430a6c30 (patch)
tree98a33e1f0065ec939abd7214d5a45201bcd73515 /generic/tkCanvText.c
parente38dd7f49658db57b71523a94c2a90f301797a4e (diff)
downloadtk-1c942064cf9b59db035a8eef8e4bc1b7430a6c30.zip
tk-1c942064cf9b59db035a8eef8e4bc1b7430a6c30.tar.gz
tk-1c942064cf9b59db035a8eef8e4bc1b7430a6c30.tar.bz2
Fixed bug 1777 - bug in displaying selection.
Diffstat (limited to 'generic/tkCanvText.c')
-rw-r--r--generic/tkCanvText.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkCanvText.c b/generic/tkCanvText.c
index b025e30..fd5aa38 100644
--- a/generic/tkCanvText.c
+++ b/generic/tkCanvText.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkCanvText.c,v 1.4 1999/04/16 01:51:11 stanton Exp $
+ * RCS: @(#) $Id: tkCanvText.c,v 1.5 1999/04/20 22:28:52 rjohnson Exp $
*/
#include <stdio.h>
@@ -631,7 +631,7 @@ DisplayCanvText(canvas, itemPtr, display, drawable, x, y, width, height)
text = textPtr->text;
selFirstChar = textInfoPtr->selectFirst;
selLastChar = textInfoPtr->selectLast;
- if (selLastChar >= textPtr->numChars) {
+ if (selLastChar > textPtr->numChars) {
selLastChar = textPtr->numChars - 1;
}
if ((selFirstChar >= 0) && (selFirstChar <= selLastChar)) {