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))