summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-21 22:36:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-21 22:36:18 (GMT)
commit671dfee6ab0dd912ed2476890c037e66f395c190 (patch)
tree28169fd28ad6c2cc668816a385733759240d9f40 /generic
parentdc176539039e17aaa7be70d438aa75127461c94b (diff)
downloadtk-671dfee6ab0dd912ed2476890c037e66f395c190.zip
tk-671dfee6ab0dd912ed2476890c037e66f395c190.tar.gz
tk-671dfee6ab0dd912ed2476890c037e66f395c190.tar.bz2
Boolean uses -1 as value when not provided. Same for Relief and Justify
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextTag.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkTextTag.c b/generic/tkTextTag.c
index a7cc635..27d1b98 100644
--- a/generic/tkTextTag.c
+++ b/generic/tkTextTag.c
@@ -106,7 +106,7 @@ SetBoolean(void *clientData,
char *oldInternalPtr,
int flags)
{
- IntStruct booleanVal = {NULL, INT_MIN};
+ IntStruct booleanVal = {NULL, -1};
IntStruct *internalPtr;
if (internalOffset >= 0) {
@@ -140,7 +140,7 @@ SetRelief(void *clientData,
char *oldInternalPtr,
int flags)
{
- IntStruct pixel = {NULL, INT_MIN};
+ IntStruct pixel = {NULL, TK_RELIEF_NULL};
IntStruct *internalPtr;
if (internalOffset >= 0) {
@@ -174,7 +174,7 @@ SetJustify(void *clientData,
char *oldInternalPtr,
int flags)
{
- JustifyStruct pixel = {NULL, INT_MIN};
+ JustifyStruct pixel = {NULL, (Tk_Justify)-1};
JustifyStruct *internalPtr;
if (internalOffset >= 0) {