summaryrefslogtreecommitdiffstats
path: root/src/svg/stringstream.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-03-22 19:11:02 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-03-22 19:11:02 +0000
commit655fcebb893b44019786e7e9c7229975024f4d97 (patch)
tree24a43ab726de543ef0f30f4d490d872d98ef3c10 /src/svg/stringstream.cpp
parentNumeric values on test area (diff)
downloadinkscape-655fcebb893b44019786e7e9c7229975024f4d97.tar.gz
inkscape-655fcebb893b44019786e7e9c7229975024f4d97.zip
* add RegisteredTransformedPoint widget, that transforms the point before displaying/writing. This in order to keep them in SVG coordinate system in XML, but in canvas coord system in the spinbox
* move Geom::Point XML writing to central place in ostringstream * add verb for LPE context (bzr r5165)
Diffstat (limited to 'src/svg/stringstream.cpp')
-rw-r--r--src/svg/stringstream.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/svg/stringstream.cpp b/src/svg/stringstream.cpp
index 65c01e7b6..62e20961a 100644
--- a/src/svg/stringstream.cpp
+++ b/src/svg/stringstream.cpp
@@ -1,6 +1,7 @@
#include "svg/stringstream.h"
#include "svg/strip-trailing-zeros.h"
#include "prefs-utils.h"
+#include <2geom/point.h>
Inkscape::SVGOStringStream::SVGOStringStream()
{
@@ -57,6 +58,12 @@ operator<<(Inkscape::SVGOStringStream &os, double d)
return os;
}
+Inkscape::SVGOStringStream &
+operator<<(Inkscape::SVGOStringStream &os, Geom::Point const & p)
+{
+ os << p[0] << ',' << p[1];
+ return os;
+}
/*
Local Variables: