From 01e85e7889ed1e2f0bff3153bbe1ff0b38c31411 Mon Sep 17 00:00:00 2001 From: ishmal Date: Sun, 25 Jun 2006 12:40:20 +0000 Subject: [PATCH] Fix output. Apparently ODF is more picky about floats than SVG. They do not like .nnn . Must be 0.nnn --- src/dom/io/domstream.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dom/io/domstream.cpp b/src/dom/io/domstream.cpp index 7b0a7e1d2..19ff3de7b 100644 --- a/src/dom/io/domstream.cpp +++ b/src/dom/io/domstream.cpp @@ -168,6 +168,8 @@ static int dprintDouble(Writer &outs, char ch = '0' + (int)dig; buf.push_back(ch); } + if (buf.size() == 0) + buf = "0"; //### Decimal point if (flag == '#' || precision > 0) -- 2.30.2