summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-12-22 01:43:39 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-12-22 01:43:39 (GMT)
commit292082ecad0ae29c005cde1e4e3d1d07f24d9a01 (patch)
tree5556bc838f980329b80cb4180b2dd405457c8c62 /generic
parent7bccb3db79ee269e12c5f019c68396947a92837a (diff)
downloadtk-292082ecad0ae29c005cde1e4e3d1d07f24d9a01.zip
tk-292082ecad0ae29c005cde1e4e3d1d07f24d9a01.tar.gz
tk-292082ecad0ae29c005cde1e4e3d1d07f24d9a01.tar.bz2
Backport of fix for [Bug 2107938].
Diffstat (limited to 'generic')
-rw-r--r--generic/tkCanvPs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkCanvPs.c b/generic/tkCanvPs.c
index d8d60a5..079b38b 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 2007/12/13 15:24:13 dgp Exp $
+ * RCS: @(#) $Id: tkCanvPs.c,v 1.19.2.1 2008/12/22 01:43:39 dkf Exp $
*/
#include "tkInt.h"
@@ -755,7 +755,7 @@ Tk_PostscriptFont(
Tcl_DStringInit(&ds);
points = Tk_PostscriptFontName(tkfont, &ds);
- sprintf(pointString, "%d", points);
+ sprintf(pointString, "%d", TkFontGetPoints(psInfoPtr->tkwin, points));
Tcl_AppendResult(interp, "/", Tcl_DStringValue(&ds), " findfont ",
pointString, " scalefont ", NULL);
if (strncasecmp(Tcl_DStringValue(&ds), "Symbol", 7) != 0) {