diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | generic/tkCanvPs.c | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -1,7 +1,7 @@ 2008-12-22 Donal K. Fellows <dkf@users.sf.net> - * generic/tkCanvPs.c (Tk_PostscriptFont): Backport of font size and - reflection fix. [Bug 2107938] + * generic/tkCanvPs.c (Tk_PostscriptFont,TkCanvPostscriptCmd): Backport + of font size and reflection fix. [Bug 2107938] 2008-12-22 Alexandre Ferrieux <ferrieux@users.sourceforge.net> diff --git a/generic/tkCanvPs.c b/generic/tkCanvPs.c index 079b38b..7752da8 100644 --- a/generic/tkCanvPs.c +++ b/generic/tkCanvPs.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkCanvPs.c,v 1.19.2.1 2008/12/22 01:43:39 dkf Exp $ + * RCS: @(#) $Id: tkCanvPs.c,v 1.19.2.2 2008/12/22 09:19:40 dkf Exp $ */ #include "tkInt.h" @@ -42,6 +42,7 @@ typedef struct TkColormapData { /* Hold color information for a window */ */ typedef struct TkPostscriptInfo { + Tk_Window tkwin; /* The canvas being printed. */ int x, y, width, height; /* Area to print, in canvas pixel * coordinates. */ int x2, y2; /* x+width and y+height. */ @@ -191,6 +192,7 @@ TkCanvPostscriptCmd( } oldInfoPtr = canvasPtr->psInfo; canvasPtr->psInfo = (Tk_PostscriptInfo) psInfoPtr; + psInfo.tkwin = canvasPtr->tkwin; psInfo.x = canvasPtr->xOrigin; psInfo.y = canvasPtr->yOrigin; psInfo.width = -1; |