diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-06-02 09:50:22 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-06-02 09:50:22 (GMT) |
commit | 7f9a1328482227ad2462a296bb956c68df2cb2e1 (patch) | |
tree | 2c28e074c3a51af9068adee468e11915f484ae14 /generic/tkCanvText.c | |
parent | ab5efd62220cf2a97e23b6d0ddcb12fad9a8cfbd (diff) | |
download | tk-7f9a1328482227ad2462a296bb956c68df2cb2e1.zip tk-7f9a1328482227ad2462a296bb956c68df2cb2e1.tar.gz tk-7f9a1328482227ad2462a296bb956c68df2cb2e1.tar.bz2 |
Fix two (minor) warnings, discovered with gcc-10, using Tcl 9 headers)
.
Diffstat (limited to 'generic/tkCanvText.c')
-rw-r--r-- | generic/tkCanvText.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkCanvText.c b/generic/tkCanvText.c index 1c8bc04..a1b2358 100644 --- a/generic/tkCanvText.c +++ b/generic/tkCanvText.c @@ -960,7 +960,7 @@ DisplayCanvText( * anti-aliasing colors would blend together. */ - if ((selFirstChar >= 0) && (textPtr->selTextGC != textPtr->gc)) { + if ((selFirstChar != TCL_INDEX_NONE) && (textPtr->selTextGC != textPtr->gc)) { if (0 < selFirstChar) { TkDrawAngledTextLayout(display, drawable, textPtr->gc, textPtr->textLayout, drawableX, drawableY, textPtr->angle, |