summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2006-06-25 12:40:20 +0000
committerishmal <ishmal@users.sourceforge.net>2006-06-25 12:40:20 +0000
commitdd30664132554161931abeb0676b1c4e0e3e30c8 (patch)
treebbc8d2d121a5baec8a135c80dc3c4954f86bc9d3
parentFix <path> output. Apparently ODF is more picky about floats than SVG. They... (diff)
downloadinkscape-dd30664132554161931abeb0676b1c4e0e3e30c8.tar.gz
inkscape-dd30664132554161931abeb0676b1c4e0e3e30c8.zip
Fix <path> output. Apparently ODF is more picky about floats than SVG. They do not like .nnn . Must be 0.nnn
(bzr r1282)
-rw-r--r--src/dom/io/domstream.cpp2
1 files changed, 2 insertions, 0 deletions
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)