diff options
author | dgp <dgp@noemail.net> | 2012-12-04 16:37:18 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2012-12-04 16:37:18 (GMT) |
commit | 66b1c3bb7224a96cec583f06a448fb96a99a1269 (patch) | |
tree | b0fdcc8a70e63856b4cd8894cb579d21f1365a7a /generic/tkTextWind.c | |
parent | 4e1fb8717b5a717195466c6d4387465b65eda234 (diff) | |
parent | 3bff8bf2b14af5d45b793e50d2b1238c5ef4070a (diff) | |
download | tk-66b1c3bb7224a96cec583f06a448fb96a99a1269.zip tk-66b1c3bb7224a96cec583f06a448fb96a99a1269.tar.gz tk-66b1c3bb7224a96cec583f06a448fb96a99a1269.tar.bz2 |
[Bug 3588824]: bug in image index handling for weird image names
FossilOrigin-Name: 22d3368e71cab5f668519e2542f0863360ddd0ca
Diffstat (limited to 'generic/tkTextWind.c')
-rw-r--r-- | generic/tkTextWind.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tkTextWind.c b/generic/tkTextWind.c index ecafd4e..5dc8feb 100644 --- a/generic/tkTextWind.c +++ b/generic/tkTextWind.c @@ -1329,6 +1329,10 @@ TkTextWindowIndex( Tcl_HashEntry *hPtr; TkTextSegment *ewPtr; + if (textPtr == NULL) { + return 0; + } + hPtr = Tcl_FindHashEntry(&textPtr->sharedTextPtr->windowTable, name); if (hPtr == NULL) { return 0; |