diff options
author | dgp <dgp@users.sourceforge.net> | 2012-12-04 17:02:22 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-12-04 17:02:22 (GMT) |
commit | 879b6812977f71d6d2174da3e79e3341ab8ba549 (patch) | |
tree | cd8002bc80338c375b21e3ec5c47e7c1aee382c3 /generic/tkTextWind.c | |
parent | 46173c18a5a65efe1003af6a0c3da8125e522841 (diff) | |
parent | 5ae5c226312e499948f5934d1d1e14e33265099b (diff) | |
download | tk-879b6812977f71d6d2174da3e79e3341ab8ba549.zip tk-879b6812977f71d6d2174da3e79e3341ab8ba549.tar.gz tk-879b6812977f71d6d2174da3e79e3341ab8ba549.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 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; |