summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/point.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/live_effects/parameter/point.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/live_effects/parameter/point.cpp')
-rw-r--r--src/live_effects/parameter/point.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/live_effects/parameter/point.cpp b/src/live_effects/parameter/point.cpp
index 35d0fcdba..9b48327f6 100644
--- a/src/live_effects/parameter/point.cpp
+++ b/src/live_effects/parameter/point.cpp
@@ -70,7 +70,7 @@ gchar *
PointParam::param_writeSVGValue() const
{
Inkscape::SVGOStringStream os;
- os << (*this)[0] << "," << (*this)[1];
+ os << *dynamic_cast<Geom::Point const *>( this );
gchar * str = g_strdup(os.str().c_str());
return str;
}
@@ -117,7 +117,7 @@ void
PointParam::param_set_and_write_new_value (Geom::Point newpoint)
{
Inkscape::SVGOStringStream os;
- os << newpoint[0] << "," << newpoint[1];
+ os << newpoint;
gchar * str = g_strdup(os.str().c_str());
param_write_to_repr(str);
g_free(str);