diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-10-31 21:19:40 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-10-31 21:19:40 +0000 |
| commit | 34baa88794a83e193b82d0c99da8c8b068997648 (patch) | |
| tree | 10fd37e4a56d00c92a40c9c41fc38f28272abc22 /src | |
| parent | Updated with new name for dz.po file (diff) | |
| download | inkscape-34baa88794a83e193b82d0c99da8c8b068997648.tar.gz inkscape-34baa88794a83e193b82d0c99da8c8b068997648.zip | |
fix off-by-one error: setting tprec to 6 was actually writing 7 digits
(bzr r1876)
Diffstat (limited to 'src')
| -rw-r--r-- | src/svg/svg-length.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/svg-length.cpp b/src/svg/svg-length.cpp index 63af37665..3b13e3d89 100644 --- a/src/svg/svg-length.cpp +++ b/src/svg/svg-length.cpp @@ -99,7 +99,7 @@ static unsigned sp_svg_number_write_d(gchar *buf, double val, unsigned int tprec } /* Determine the actual number of fractional digits */ - fprec = MAX(fprec, tprec - idigits); + fprec = MAX(fprec, tprec - idigits - 1); /* Round value */ val += 0.5 * pow(10.0, - ((double) fprec)); /* Extract integral and fractional parts */ |
