diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-16 22:21:02 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-16 22:21:02 (GMT) |
commit | 010a84784895dd16ae0c28322e09c2f8b77c39f6 (patch) | |
tree | f3b084b5ed1a3c0a1af9215f07c8862a8f3ebbc8 /generic/tkEntry.c | |
parent | 007059de55d6c297bbb28ce894d5fcebc1b671bb (diff) | |
parent | 72fb10940a9941ab37ccffa22f56a4f4a044e1fe (diff) | |
download | tk-010a84784895dd16ae0c28322e09c2f8b77c39f6.zip tk-010a84784895dd16ae0c28322e09c2f8b77c39f6.tar.gz tk-010a84784895dd16ae0c28322e09c2f8b77c39f6.tar.bz2 |
Implement TK_CONFIG_NULL_OK for TK_CONFIG_PIXELS. Needed for "-elementborderwidth" in tkScrollbar.c
Make TK_OPTION_NULL_OK the same value as TCL_NULL_OK for Tcl 9, but keep binary compatibility. Fix some spacing
Diffstat (limited to 'generic/tkEntry.c')
-rw-r--r-- | generic/tkEntry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkEntry.c b/generic/tkEntry.c index d1514d1..3b9b00f 100644 --- a/generic/tkEntry.c +++ b/generic/tkEntry.c @@ -1316,7 +1316,7 @@ ConfigureEntry( Tk_SetInternalBorder(entryPtr->tkwin, entryPtr->borderWidth + entryPtr->highlightWidth); - if (entryPtr->highlightWidth <= 0) { + if (entryPtr->highlightWidth < 0) { entryPtr->highlightWidth = 0; } entryPtr->inset = entryPtr->highlightWidth |