summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvText.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-06-02 09:50:22 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-06-02 09:50:22 (GMT)
commit7f9a1328482227ad2462a296bb956c68df2cb2e1 (patch)
tree2c28e074c3a51af9068adee468e11915f484ae14 /generic/tkCanvText.c
parentab5efd62220cf2a97e23b6d0ddcb12fad9a8cfbd (diff)
downloadtk-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.c2
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,