diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-06-23 15:24:13 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-06-23 15:24:13 (GMT) |
commit | c1617bb90af0cb596871fea41ebc5f36ea1ea89b (patch) | |
tree | 2a31e334a2ff149ce2ff75b0f486a1cba19a0d32 /generic | |
parent | c3c9cfa9f1c04df3a63711f081e1973aaddbb8a3 (diff) | |
download | tk-c1617bb90af0cb596871fea41ebc5f36ea1ea89b.zip tk-c1617bb90af0cb596871fea41ebc5f36ea1ea89b.tar.gz tk-c1617bb90af0cb596871fea41ebc5f36ea1ea89b.tar.bz2 |
Fix [fc59158961]: Segfault when .text configure
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkText.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index 3cc901c..119f229 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -6787,7 +6787,7 @@ GetLineStartEnd( (void)dummy; (void)tkwin; - if ((internalOffset == TCL_INDEX_NONE) || (recordPtr == NULL)) { + if (linePtr == NULL) { return Tcl_NewObj(); } return Tcl_NewWideIntObj(1 + TkBTreeLinesTo(NULL, linePtr)); |