summaryrefslogtreecommitdiffstats
path: root/generic/tkTextWind.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-12-04 17:02:22 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-12-04 17:02:22 (GMT)
commit3f42c9107ec35c5ee5c4375e300ee6f64190b470 (patch)
treecd8002bc80338c375b21e3ec5c47e7c1aee382c3 /generic/tkTextWind.c
parente663907018c3069a94a7917f49cd1375e6c3bdb0 (diff)
parent113feb6ab1ff04f9d02a2e0f4869e33f7a3c5458 (diff)
downloadtk-3f42c9107ec35c5ee5c4375e300ee6f64190b470.zip
tk-3f42c9107ec35c5ee5c4375e300ee6f64190b470.tar.gz
tk-3f42c9107ec35c5ee5c4375e300ee6f64190b470.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 d2998da..454d198 100644
--- a/generic/tkTextWind.c
+++ b/generic/tkTextWind.c
@@ -1340,6 +1340,10 @@ TkTextWindowIndex(
Tcl_HashEntry *hPtr;
TkTextSegment *ewPtr;
+ if (textPtr == NULL) {
+ return 0;
+ }
+
hPtr = Tcl_FindHashEntry(&textPtr->sharedTextPtr->windowTable, name);
if (hPtr == NULL) {
return 0;