* src/docgen/OpenOfficeDoc.py: Compute correctly the draw:viewBox to

please some versions of OpenOffice.org


svn: r4909
This commit is contained in:
Julio Sánchez 2005-07-07 05:28:46 +00:00
parent b068587c78
commit 8c2ce165d2
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-07-07 Julio Sanchez <jsanchez@users.sourceforge.net>
* src/docgen/OpenOfficeDoc.py: Compute correctly the draw:viewBox to
please some versions of OpenOffice.org
2005-07-05 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/PeopleModel.py (calculate_data): Fix invert of search result
* src/Date.py (is_equal): Only compare text value for TEXTONLY dates.

View File

@ -834,7 +834,7 @@ class OpenOfficeDoc(BaseDoc.BaseDoc):
y = int((miny)*1000)
self.cntnt.write('svg:x="%d" svg:y="%d" ' % (x,y))
self.cntnt.write('svg:viewBox="0 0 %d %d" ' % (int(maxx-minx)*1000,int(maxy-miny)*1000))
self.cntnt.write('svg:viewBox="0 0 %d %d" ' % (int((maxx-minx)*1000),int((maxy-miny)*1000)))
self.cntnt.write('svg:width="%.4fcm" ' % (maxx-minx))
self.cntnt.write('svg:height="%.4fcm" ' % (maxy-miny))