summaryrefslogtreecommitdiffstats
path: root/generic/tkTextWind.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2012-12-04 16:37:18 (GMT)
committerdgp@users.sourceforge.net <dgp>2012-12-04 16:37:18 (GMT)
commit80f832ba9be756c9000a93b31d1cdfec313e43fb (patch)
tree64cda0f971f064528738d6edaf8619a3a3f1f5c0 /generic/tkTextWind.c
parent7694213919d4ba40566959576e118aa7358682e7 (diff)
parent0f9b5cfe8ef698ee3cdabdd60cb249996475d5b6 (diff)
downloadtk-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.c4
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;