summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvText.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-09-10 22:49:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-09-10 22:49:30 (GMT)
commit3498a8c53238b6e5de027d16078fd177c897e70e (patch)
tree61503a1747f830a8b1535390052704babd75d359 /generic/tkCanvText.c
parente1a3df121abcf048773a6469883d1167c730b976 (diff)
downloadtk-3498a8c53238b6e5de027d16078fd177c897e70e.zip
tk-3498a8c53238b6e5de027d16078fd177c897e70e.tar.gz
tk-3498a8c53238b6e5de027d16078fd177c897e70e.tar.bz2
Fix [3e966346] canvas text item -underline attribute not reciprocal
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 185d4a4..b631ebd 100644
--- a/generic/tkCanvText.c
+++ b/generic/tkCanvText.c
@@ -168,7 +168,7 @@ UnderlinePrintProc(
}
p = (char *)ckalloc(32);
if (underline < 0) {
- snprintf(p, 32, "end%d", underline);
+ snprintf(p, 32, "end%d", 1 + underline);
} else {
snprintf(p, 32, "%d", underline);
}