summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/point.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-01-08 19:52:22 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-01-08 19:52:22 +0000
commit69dfe313e8757e0db085555b5f2de0c258618f2f (patch)
tree401a09357b96733490e5e11923c58b86c2a1fe92 /src/live_effects/parameter/point.cpp
parent* [INTL: nl] Dutch update by Foppe Benedictus (closes: #181283) (diff)
downloadinkscape-69dfe313e8757e0db085555b5f2de0c258618f2f.tar.gz
inkscape-69dfe313e8757e0db085555b5f2de0c258618f2f.zip
correctly transform LPE path and point parameters with the SPItem's transform
(bzr r4433)
Diffstat (limited to 'src/live_effects/parameter/point.cpp')
-rw-r--r--src/live_effects/parameter/point.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/live_effects/parameter/point.cpp b/src/live_effects/parameter/point.cpp
index 3d13ed12d..eea337c85 100644
--- a/src/live_effects/parameter/point.cpp
+++ b/src/live_effects/parameter/point.cpp
@@ -118,6 +118,22 @@ PointParam::param_setValue(Geom::Point newpoint)
pointwdg->setValue(newpoint[0], newpoint[1]);
}
+void
+PointParam::param_set_and_write_new_value (Geom::Point newpoint)
+{
+ Inkscape::SVGOStringStream os;
+ os << newpoint[0] << "," << newpoint[1];
+ gchar * str = g_strdup(os.str().c_str());
+ param_write_to_repr(str);
+ g_free(str);
+}
+
+void
+PointParam::param_transform_multiply(Geom::Matrix const& postmul, bool /*set*/)
+{
+ param_set_and_write_new_value( (*this) * postmul );
+}
+
// CALLBACKS: