summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-01-12 09:46:26 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-01-12 09:46:26 (GMT)
commitc84948f660d87bfecd5cf830a4986d95f00c1e4a (patch)
treee3fa63adcd3593c816750f84f855789fd50af1c8 /generic/tkText.c
parent430f5c9c144dca634ae3af7b82619b9bff00d64a (diff)
downloadtk-c84948f660d87bfecd5cf830a4986d95f00c1e4a.zip
tk-c84948f660d87bfecd5cf830a4986d95f00c1e4a.tar.gz
tk-c84948f660d87bfecd5cf830a4986d95f00c1e4a.tar.bz2
Bring back DEF_TEXT_SPACING[123], since "0" is not exactly equal to NULL (just to be 100% sure there will not be a behavioral change)bug_2049429fff
Diffstat (limited to 'generic/tkText.c')
-rw-r--r--generic/tkText.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index eb9658e..a713e7e 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -215,14 +215,14 @@ static const Tk_OptionSpec optionSpecs[] = {
{TK_OPTION_BOOLEAN, "-setgrid", "setGrid", "SetGrid",
DEF_TEXT_SET_GRID, -1, Tk_Offset(TkText, setGrid), 0, 0, 0},
{TK_OPTION_PIXELS, "-spacing1", "spacing1", "Spacing",
- NULL, -1, Tk_Offset(TkText, spacing1),
- TK_OPTION_NULL_OK, 0 , TK_TEXT_LINE_GEOMETRY },
+ DEF_TEXT_SPACING1, -1, Tk_Offset(TkText, spacing1),
+ 0, 0 , TK_TEXT_LINE_GEOMETRY },
{TK_OPTION_PIXELS, "-spacing2", "spacing2", "Spacing",
- NULL, -1, Tk_Offset(TkText, spacing2),
- TK_OPTION_NULL_OK, 0 , TK_TEXT_LINE_GEOMETRY },
+ DEF_TEXT_SPACING2, -1, Tk_Offset(TkText, spacing2),
+ 0, 0 , TK_TEXT_LINE_GEOMETRY },
{TK_OPTION_PIXELS, "-spacing3", "spacing3", "Spacing",
- NULL, -1, Tk_Offset(TkText, spacing3),
- TK_OPTION_NULL_OK, 0 , TK_TEXT_LINE_GEOMETRY },
+ DEF_TEXT_SPACING3, -1, Tk_Offset(TkText, spacing3),
+ 0, 0 , TK_TEXT_LINE_GEOMETRY },
{TK_OPTION_CUSTOM, "-startline", NULL, NULL,
NULL, -1, Tk_Offset(TkText, start), TK_OPTION_NULL_OK,
&lineOption, TK_TEXT_LINE_RANGE},