From ccc807a2346143af16cc1cc3df6970888b9868e9 Mon Sep 17 00:00:00 2001 From: treectrl Date: Sun, 29 May 2005 02:43:02 +0000 Subject: Fix XImage2Photo under Tk 8.5 (tree was undefined). --- generic/tkTreeUtils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/tkTreeUtils.c b/generic/tkTreeUtils.c index d477770..d2ea599 100644 --- a/generic/tkTreeUtils.c +++ b/generic/tkTreeUtils.c @@ -5,7 +5,7 @@ * * Copyright (c) 2002-2005 Tim Baker * - * RCS: @(#) $Id: tkTreeUtils.c,v 1.23 2005/05/27 20:02:55 treectrl Exp $ + * RCS: @(#) $Id: tkTreeUtils.c,v 1.24 2005/05/29 02:43:02 treectrl Exp $ */ #include "tkTreeCtrl.h" @@ -748,7 +748,7 @@ void XImage2Photo(Tcl_Interp *interp, Tk_PhotoHandle photoH, XImage *ximage, int } } - TK_PHOTOPUTBLOCK(tree->interp, photoH, &photoBlock, 0, 0, w, h, + TK_PHOTOPUTBLOCK(interp, photoH, &photoBlock, 0, 0, w, h, TK_PHOTO_COMPOSITE_SET); Tcl_Free((char *) pixelPtr); -- cgit v0.12