From 164db015e955efddd63056ec4ab830be5d570629 Mon Sep 17 00:00:00 2001
From: Serge Noiraud <Serge.Noiraud@free.fr>
Date: Mon, 11 Jan 2010 08:12:08 +0000
Subject: [PATCH] ODFDoc : issue 3439, 3440, 3461, 3462

svn: r14027
---
 src/plugins/docgen/ODFDoc.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/plugins/docgen/ODFDoc.py b/src/plugins/docgen/ODFDoc.py
index 5f8382391..9d2b19775 100644
--- a/src/plugins/docgen/ODFDoc.py
+++ b/src/plugins/docgen/ODFDoc.py
@@ -1021,10 +1021,10 @@ class ODFDoc(BaseDoc.BaseDoc, BaseDoc.TextDoc, BaseDoc.DrawDoc):
 
         self.cntnt.write('<draw:polygon draw:style-name="%s" draw:layer="layout" ' % style)
         self.cntnt.write('draw:z-index="1" ')
-        x = int((minx)*1000)
-        y = int((miny)*1000)
+        x = float(minx)
+        y = float(miny)
         
-        self.cntnt.write('svg:x="%d" svg:y="%d" ' % (x, y))
+        self.cntnt.write('svg:x="%2fcm" svg:y="%2fcm" ' % (x, y))
         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))