diff --git a/src/svg/svg-length.cpp b/src/svg/svg-length.cpp
index 63af37665f02ce80858654108eebc02e15958acb..3b13e3d89018bbf4889e695f46cb0d8edb8258a3 100644 (file)
--- a/src/svg/svg-length.cpp
+++ b/src/svg/svg-length.cpp
}
/* 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 */