summaryrefslogtreecommitdiffstats
path: root/src/svg
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-05-19 02:36:23 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-05-19 02:36:23 +0000
commite25b4f7d13cc32048cb9bd3f9c1db62397d26afd (patch)
treeb5ff38170533e98afbc76af3de451db81f2bb6f2 /src/svg
parentadded functionality to for users to register jabber accounts within the white... (diff)
downloadinkscape-e25b4f7d13cc32048cb9bd3f9c1db62397d26afd.tar.gz
inkscape-e25b4f7d13cc32048cb9bd3f9c1db62397d26afd.zip
PDF export patch by Ulf Erikson
(bzr r885)
Diffstat (limited to 'src/svg')
-rw-r--r--src/svg/stringstream.cpp4
-rw-r--r--src/svg/stringstream.h12
2 files changed, 14 insertions, 2 deletions
diff --git a/src/svg/stringstream.cpp b/src/svg/stringstream.cpp
index 3cbfcd86b..5ef5c2ec0 100644
--- a/src/svg/stringstream.cpp
+++ b/src/svg/stringstream.cpp
@@ -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());
diff --git a/src/svg/stringstream.h b/src/svg/stringstream.h
index 34cbdc2bd..b08a89e03 100644
--- a/src/svg/stringstream.h
+++ b/src/svg/stringstream.h
@@ -53,6 +53,18 @@ public:
std::streamsize precision(std::streamsize p) {
return ostr.precision(p);
}
+
+ std::ios::fmtflags setf(std::ios::fmtflags fmtfl) {
+ return ostr.setf(fmtfl);
+ }
+
+ std::ios::fmtflags setf(std::ios::fmtflags fmtfl, std::ios::fmtflags mask) {
+ return ostr.setf(fmtfl, mask);
+ }
+
+ void unsetf(std::ios::fmtflags mask) {
+ ostr.unsetf(mask);
+ }
};
}