From 9dde2a95bdbe44c1acdfa4bb279ca554771bb0c8 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Cenoz Date: Sat, 14 Mar 2015 11:22:32 +0100 Subject: Lattice 2 now handle in miror mode revase of axis, also fix a bug moving extem axis knots (bzr r14001) --- src/live_effects/parameter/point.cpp | 5 +++++ src/live_effects/parameter/point.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/live_effects/parameter') diff --git a/src/live_effects/parameter/point.cpp b/src/live_effects/parameter/point.cpp index 30e59a2bd..aece8fb79 100644 --- a/src/live_effects/parameter/point.cpp +++ b/src/live_effects/parameter/point.cpp @@ -47,6 +47,11 @@ PointParam::param_set_default() param_setValue(defvalue,true); } +Geom::Point +PointParam::param_get_default() const{ + return defvalue; +} + void PointParam::param_update_default(Geom::Point newpoint) { diff --git a/src/live_effects/parameter/point.h b/src/live_effects/parameter/point.h index 346e79bdd..32433713a 100644 --- a/src/live_effects/parameter/point.h +++ b/src/live_effects/parameter/point.h @@ -38,9 +38,9 @@ public: bool param_readSVGValue(const gchar * strvalue); gchar * param_getSVGValue() const; inline const gchar *handleTip() const { return handle_tip ? handle_tip : param_tooltip.c_str(); } - void param_setValue(Geom::Point newpoint, bool write = false); void param_set_default(); + Geom::Point param_get_default() const; void param_update_default(Geom::Point newpoint); virtual void param_transform_multiply(Geom::Affine const& /*postmul*/, bool /*set*/); -- cgit v1.2.3