index 5ef5c2ec06ddce94f6d2d1282b49920183f49107..65c01e7b687b3332f138f5ee9f941643687b663c 100644 (file)
--- a/src/svg/stringstream.cpp
+++ b/src/svg/stringstream.cpp
#include "svg/stringstream.h"
#include "svg/strip-trailing-zeros.h"
+#include "prefs-utils.h"
Inkscape::SVGOStringStream::SVGOStringStream()
{
/* This one is (currently) needed though, as we currently use ostr.precision as a sort of
variable for storing the desired precision: see our two precision methods and our operator<<
methods for float and double. */
- ostr.precision(8);
+ ostr.precision(prefs_get_int_attribute("options.svgoutput", "numericprecision", 8));
}
Inkscape::SVGOStringStream &
{
/* Try as integer first. */
{
- long const n = long(d);
+ int const n = int(d);
if (d == n) {
os << n;
return os;
{
/* Try as integer first. */
{
- long const n = long(d);
+ int const n = int(d);
if (d == n) {
os << n;
return os;