From 7240de5809d66a6f14e578d37396bfaa97ee8f08 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Cenoz Date: Wed, 11 Mar 2015 00:57:47 +0100 Subject: Final cleanup to point parameter, lattice2 and perspective envelope. Also added to lattice 2 a symmetry options (bzr r13989) --- src/live_effects/parameter/point.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/live_effects/parameter/point.cpp') diff --git a/src/live_effects/parameter/point.cpp b/src/live_effects/parameter/point.cpp index 1fda97b0d..8cb9a58a8 100644 --- a/src/live_effects/parameter/point.cpp +++ b/src/live_effects/parameter/point.cpp @@ -30,8 +30,7 @@ PointParam::PointParam( const Glib::ustring& label, const Glib::ustring& tip, Effect* effect, const gchar *htip, Geom::Point default_value) : Geom::Point(default_value), Parameter(label, tip, key, wr, effect), - defvalue(default_value), - lpeitem( NULL) + defvalue(default_value) { knot_shape = SP_KNOT_SHAPE_DIAMOND; knot_mode = SP_KNOT_MODE_XOR; @@ -119,16 +118,13 @@ PointParam::param_setValue(Geom::Point newpoint) } void -PointParam::param_set_and_write_new_value (Geom::Point newpoint) +PointParam::param_set_and_write_new_value(Geom::Point newpoint) { Inkscape::SVGOStringStream os; os << newpoint; gchar * str = g_strdup(os.str().c_str()); param_write_to_repr(str); g_free(str); - if(lpeitem){ - sp_lpe_item_update_patheffect(lpeitem, false, false); - } } void @@ -198,7 +194,6 @@ PointParamKnotHolderEntity::knot_click(guint state) void PointParam::addKnotHolderEntities(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item) { - lpeitem = dynamic_cast(item); PointParamKnotHolderEntity *e = new PointParamKnotHolderEntity(this); // TODO: can we ditch handleTip() etc. because we have access to handle_tip etc. itself??? e->create(desktop, item, knotholder, Inkscape::CTRL_TYPE_UNKNOWN, handleTip(), knot_shape, knot_mode, knot_color); -- cgit v1.2.3