summaryrefslogtreecommitdiffstats
path: root/generic/tkTextWind.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-12-04 16:37:18 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-12-04 16:37:18 (GMT)
commit113feb6ab1ff04f9d02a2e0f4869e33f7a3c5458 (patch)
treeb0fdcc8a70e63856b4cd8894cb579d21f1365a7a /generic/tkTextWind.c
parent095fb9e4a3e83c678d92eb6a59f17b9c98b9ab55 (diff)
parentda50f34ecbf4db62aacd90cbd9a7f9788d72110b (diff)
downloadtk-113feb6ab1ff04f9d02a2e0f4869e33f7a3c5458.zip
tk-113feb6ab1ff04f9d02a2e0f4869e33f7a3c5458.tar.gz
tk-113feb6ab1ff04f9d02a2e0f4869e33f7a3c5458.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;