summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkLabel.c
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2023-04-18 01:31:30 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2023-04-18 01:31:30 (GMT)
commitc6eb4388bed08a7f24b9de6cd12d1500cab024ca (patch)
tree46deb9aa25e9f0773eafb2a0f784dc9518b07f25 /generic/ttk/ttkLabel.c
parent5035f5954254109e1246c2252af76dab930c40dc (diff)
downloadtk-c6eb4388bed08a7f24b9de6cd12d1500cab024ca.zip
tk-c6eb4388bed08a7f24b9de6cd12d1500cab024ca.tar.gz
tk-c6eb4388bed08a7f24b9de6cd12d1500cab024ca.tar.bz2
Last set (hopefully) in preparation of TIP 660
Diffstat (limited to 'generic/ttk/ttkLabel.c')
-rw-r--r--generic/ttk/ttkLabel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/ttk/ttkLabel.c b/generic/ttk/ttkLabel.c
index 46c4017..baa6f6a 100644
--- a/generic/ttk/ttkLabel.c
+++ b/generic/ttk/ttkLabel.c
@@ -176,7 +176,7 @@ static void TextDraw(TextElement *text, Tk_Window tkwin, Drawable d, Ttk_Box b)
if (text->underlineObj != NULL) {
TkGetIntForIndex(text->underlineObj, TCL_INDEX_END, 0, &underline);
- if (underline != TCL_INDEX_NONE) {
+ if (underline >= 0) {
if ((size_t)underline > (size_t)TCL_INDEX_END>>1) {
underline++;
}