From: ishmal Date: Fri, 30 Jun 2006 01:46:04 +0000 (+0000) Subject: Fix integer padding X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a99e1ba0df54c7a8c0cc18a033b85848c2db6abc;p=inkscape.git Fix integer padding --- diff --git a/src/dom/io/domstream.cpp b/src/dom/io/domstream.cpp index 6c315990d..c6234d462 100644 --- a/src/dom/io/domstream.cpp +++ b/src/dom/io/domstream.cpp @@ -95,6 +95,13 @@ static int dprintInt(Writer &outs, buf.insert(buf.begin(), '0'); } + if (buf.size() == 0) + buf = "0"; + + int pad = width - (int)buf.size(); + for (int i=0 ; i