From: ishmal Date: Sun, 25 Jun 2006 12:40:20 +0000 (+0000) Subject: Fix output. Apparently ODF is more picky about floats than SVG. They do... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=01e85e7889ed1e2f0bff3153bbe1ff0b38c31411;p=inkscape.git Fix output. Apparently ODF is more picky about floats than SVG. They do not like .nnn . Must be 0.nnn --- 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)