From 655fcebb893b44019786e7e9c7229975024f4d97 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sat, 22 Mar 2008 19:11:02 +0000 Subject: * 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) --- src/svg/stringstream.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/svg/stringstream.cpp') 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: -- cgit v1.2.3