Code

Fix <path> output. Apparently ODF is more picky about floats than SVG. They do...
authorishmal <ishmal@users.sourceforge.net>
Sun, 25 Jun 2006 12:40:20 +0000 (12:40 +0000)
committerishmal <ishmal@users.sourceforge.net>
Sun, 25 Jun 2006 12:40:20 +0000 (12:40 +0000)
src/dom/io/domstream.cpp

index 7b0a7e1d2b6cfa1bd6e14d5aef2350cca49f1b27..19ff3de7b1c784bd03f20ad23f5f7f18bde5292c 100644 (file)
@@ -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)