summaryrefslogtreecommitdiffstats
path: root/src/pen-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-06-12 13:23:17 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-06-12 13:23:17 +0000
commite2ebbb4f9c51fd4d4528899b761afe74f6f4dd42 (patch)
treecf08b1b3a2d345c346a14a2f203dd0e64cc2f174 /src/pen-context.cpp
parentPen context can now wait for a specified number of clicks and finish the path... (diff)
downloadinkscape-e2ebbb4f9c51fd4d4528899b761afe74f6f4dd42.tar.gz
inkscape-e2ebbb4f9c51fd4d4528899b761afe74f6f4dd42.zip
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)
Diffstat (limited to 'src/pen-context.cpp')
-rw-r--r--src/pen-context.cpp6
1 files changed, 3 insertions, 3 deletions
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));
}
}