summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-offset.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-03-02 01:29:50 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-03-02 01:29:50 +0000
commitca3e7a946f799965864880459ef248417ac9dee6 (patch)
treeb472d0e61c5dc647c255ed6d9be76616047984aa /src/live_effects/lpe-offset.cpp
parentFixed a bad casting (diff)
downloadinkscape-ca3e7a946f799965864880459ef248417ac9dee6.tar.gz
inkscape-ca3e7a946f799965864880459ef248417ac9dee6.zip
Merged pointreseteable parameter to point parameter
(bzr r13961)
Diffstat (limited to 'src/live_effects/lpe-offset.cpp')
-rw-r--r--src/live_effects/lpe-offset.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/live_effects/lpe-offset.cpp b/src/live_effects/lpe-offset.cpp
index dc91775b7..232f1c9db 100644
--- a/src/live_effects/lpe-offset.cpp
+++ b/src/live_effects/lpe-offset.cpp
@@ -42,7 +42,9 @@ LPEOffset::~LPEOffset()
void
LPEOffset::doOnApply(SPLPEItem const* lpeitem)
{
- offset_pt.param_set_and_write_new_value(*(SP_SHAPE(lpeitem)->_curve->first_point()));
+ Geom::Point offset = *(SP_SHAPE(lpeitem)->_curve->first_point());
+ offset_pt.param_update_default(offset);
+ offset_pt.param_set_and_write_new_value(offset);
}
static void append_half_circle(Geom::Piecewise<Geom::D2<Geom::SBasis> > &pwd2,