Code

undo annotation
[inkscape.git] / src / svg / stringstream.cpp
index 3cbfcd86b38f7ff64901b3097f5cfeb1d532f9e5..5ef5c2ec06ddce94f6d2d1282b49920183f49107 100644 (file)
@@ -28,7 +28,7 @@ operator<<(Inkscape::SVGOStringStream &os, float d)
 
     std::ostringstream s;
     s.imbue(std::locale::classic());
-    s.setf(std::ios::showpoint);
+    s.flags(os.setf(std::ios::showpoint));
     s.precision(os.precision());
     s << d;
     os << strip_trailing_zeros(s.str());
@@ -49,7 +49,7 @@ operator<<(Inkscape::SVGOStringStream &os, double d)
 
     std::ostringstream s;
     s.imbue(std::locale::classic());
-    s.setf(std::ios::showpoint);
+    s.flags(os.setf(std::ios::showpoint));
     s.precision(os.precision());
     s << d;
     os << strip_trailing_zeros(s.str());