diff options
author | dgp <dgp@users.sourceforge.net> | 2012-12-04 16:37:18 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-12-04 16:37:18 (GMT) |
commit | 5ae5c226312e499948f5934d1d1e14e33265099b (patch) | |
tree | b0fdcc8a70e63856b4cd8894cb579d21f1365a7a /generic/tkTextImage.c | |
parent | f4da5583aaf7d522caa95c64a2d6614622ab4e88 (diff) | |
parent | ebdb1af200a5bdf041a872601852a6b93ae20900 (diff) | |
download | tk-5ae5c226312e499948f5934d1d1e14e33265099b.zip tk-5ae5c226312e499948f5934d1d1e14e33265099b.tar.gz tk-5ae5c226312e499948f5934d1d1e14e33265099b.tar.bz2 |
[Bug 3588824]: bug in image index handling for weird image names
Diffstat (limited to 'generic/tkTextImage.c')
-rw-r--r-- | generic/tkTextImage.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tkTextImage.c b/generic/tkTextImage.c index 771347d..bc2b7c4 100644 --- a/generic/tkTextImage.c +++ b/generic/tkTextImage.c @@ -779,6 +779,10 @@ TkTextImageIndex( Tcl_HashEntry *hPtr; TkTextSegment *eiPtr; + if (textPtr == NULL) { + return 0; + } + hPtr = Tcl_FindHashEntry(&textPtr->sharedTextPtr->imageTable, name); if (hPtr == NULL) { return 0; |