From 8c2ce165d2699fb54948e9a877ee5d4618035ee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20S=C3=A1nchez?= Date: Thu, 7 Jul 2005 05:28:46 +0000 Subject: [PATCH] * src/docgen/OpenOfficeDoc.py: Compute correctly the draw:viewBox to please some versions of OpenOffice.org svn: r4909 --- gramps2/ChangeLog | 4 ++++ gramps2/src/docgen/OpenOfficeDoc.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index a71aba09c..f53e059c5 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2005-07-07 Julio Sanchez + * src/docgen/OpenOfficeDoc.py: Compute correctly the draw:viewBox to + please some versions of OpenOffice.org + 2005-07-05 Martin Hawlisch * src/PeopleModel.py (calculate_data): Fix invert of search result * src/Date.py (is_equal): Only compare text value for TEXTONLY dates. diff --git a/gramps2/src/docgen/OpenOfficeDoc.py b/gramps2/src/docgen/OpenOfficeDoc.py index d470d884a..f41d3df7f 100644 --- a/gramps2/src/docgen/OpenOfficeDoc.py +++ b/gramps2/src/docgen/OpenOfficeDoc.py @@ -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))