From e2ebbb4f9c51fd4d4528899b761afe74f6f4dd42 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Thu, 12 Jun 2008 13:23:17 +0000 Subject: Infrastructure in class LivePathEffect::Effect to put Inkscape into 'wait for parameter path' mode; make LPEMirrorReflect use this to let the user specify the mirroring line (bzr r5902) --- src/pen-context.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pen-context.cpp') diff --git a/src/pen-context.cpp b/src/pen-context.cpp index dd9688f02..4616c04ae 100644 --- a/src/pen-context.cpp +++ b/src/pen-context.cpp @@ -181,7 +181,7 @@ sp_pen_context_dispose(GObject *object) pc->polylines_only = false; if (pc->expecting_clicks_for_LPE > 0) { // we received too few clicks to sanely set the parameter path so we remove the LPE from the item - //sp_lpe_item_remove_current_path_effect(SP_LPE_ITEM(pc->waiting_item), false); + sp_lpe_item_remove_current_path_effect(pc->waiting_item, false); } } @@ -785,8 +785,8 @@ pen_handle_button_release(SPPenContext *const pc, GdkEventButton const &revent) SPEventContext *ec = SP_EVENT_CONTEXT(pc); Inkscape::Selection *selection = sp_desktop_selection (ec->desktop); - //pc->waiting_LPE->acceptParamPath(SP_PATH(selection->singleItem())); - //selection->add(SP_OBJECT(pc->waiting_item)); + pc->waiting_LPE->acceptParamPath(SP_PATH(selection->singleItem())); + selection->add(SP_OBJECT(pc->waiting_item)); } } -- cgit v1.2.3