diff options
author | dgp@users.sourceforge.net <dgp> | 2012-12-04 16:37:18 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2012-12-04 16:37:18 (GMT) |
commit | 80f832ba9be756c9000a93b31d1cdfec313e43fb (patch) | |
tree | 64cda0f971f064528738d6edaf8619a3a3f1f5c0 /generic/tkTextWind.c | |
parent | 7694213919d4ba40566959576e118aa7358682e7 (diff) | |
parent | 0f9b5cfe8ef698ee3cdabdd60cb249996475d5b6 (diff) | |
download | tk-80f832ba9be756c9000a93b31d1cdfec313e43fb.zip tk-80f832ba9be756c9000a93b31d1cdfec313e43fb.tar.gz tk-80f832ba9be756c9000a93b31d1cdfec313e43fb.tar.bz2 |
[Bug 3588824]: bug in image index handling for weird image names
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; |