summaryrefslogtreecommitdiffstats
path: root/generic/tkEntry.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-16 22:16:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-16 22:16:46 (GMT)
commit72fb10940a9941ab37ccffa22f56a4f4a044e1fe (patch)
treed1ba9e919b7b48e86094388830d923d0831c2396 /generic/tkEntry.c
parent3951487aa1587e2fedee41985f6b60f0e9bb1e77 (diff)
downloadtk-72fb10940a9941ab37ccffa22f56a4f4a044e1fe.zip
tk-72fb10940a9941ab37ccffa22f56a4f4a044e1fe.tar.gz
tk-72fb10940a9941ab37ccffa22f56a4f4a044e1fe.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkEntry.c b/generic/tkEntry.c
index 477f359..7ee455e 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