summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/parameter')
-rw-r--r--src/live_effects/parameter/point.cpp5
-rw-r--r--src/live_effects/parameter/point.h2
2 files changed, 6 insertions, 1 deletions
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*/);