[reportlab-users] [Patch] lib/_rl_accel.c

Yves Bastide reportlab-users@reportlab.com
Wed, 18 Aug 2004 12:28:33 +0200


This is a multi-part message in MIME format.
--------------010606040808010701020103
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

A small bug in lib/_rl_accel.c bit me the other day when registering a 
font (missing argument when calling _SWRecover). Patch attached.

BTW, the svn server seems unavailable:

svn: REPORT request failed on '/svn/public/!svn/vcc/default'
svn: REPORT of '/svn/public/!svn/vcc/default': 400 Bad Request 
(http://www.reportlab.co.uk)


Regards,

yves

--------------010606040808010701020103
Content-Type: text/plain;
 name="_rl_accel.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="_rl_accel.c.diff"

--- reportlab/lib/_rl_accel.c~	2004-08-18 12:09:06.762467866 +0200
+++ reportlab/lib/_rl_accel.c	2004-08-18 12:09:09.411395258 +0200
@@ -297,7 +297,7 @@
 
 	if(!(fI=find_font(fontName,e->fonts))){
 		if(_SWRecover && recover){
-			PyObject *arglist = Py_BuildValue("(s#sd)",text,textLen,fontName,fontSize);
+			PyObject *arglist = Py_BuildValue("(s#sds)",text,textLen,fontName,fontSize,e->name);
 			PyObject *result;
 			if(!arglist){
 				PyErr_SetString(ErrorObject,"recovery failed!");

--------------010606040808010701020103--