summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)