[Erp5-report] r21195 - /erp5/trunk/products/ERP5/Document/Image.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed May 28 15:21:59 CEST 2008
Author: yusei
Date: Wed May 28 15:21:52 2008
New Revision: 21195
URL: http://svn.erp5.org?rev=21195&view=rev
Log:
convert digit string to int. (This is a temporary dirty fix)
Modified:
erp5/trunk/products/ERP5/Document/Image.py
Modified: erp5/trunk/products/ERP5/Document/Image.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Image.py?rev=21195&r1=21194&r2=21195&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Image.py (original)
+++ erp5/trunk/products/ERP5/Document/Image.py Wed May 28 15:21:52 2008
@@ -457,6 +457,13 @@
img_width, img_height = (self.getWidth(), self.getHeight())
if img_width == 0:
return (0, 0)
+
+ #XXX This is a temporary dirty fix!!!
+ width = int(width)
+ height = int(height)
+ img_width = int(img_width)
+ img_height = int(img_height)
+
if height > img_height * width / img_width:
height = img_height * width / img_width
else:
More information about the Erp5-report
mailing list