summaryrefslogtreecommitdiffstats
path: root/src/pencil-context.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2009-02-24 11:31:49 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2009-02-24 11:31:49 +0000
commite4c7c9871db9e68faaccda6e904d69453f02472c (patch)
treeda340a16d49dca53ec06a8fd429541ae41dd0b22 /src/pencil-context.cpp
parentfix scaling of text without font size set (diff)
downloadinkscape-e4c7c9871db9e68faaccda6e904d69453f02472c.tar.gz
inkscape-e4c7c9871db9e68faaccda6e904d69453f02472c.zip
limit dot creation to straight line modes of Pen only
(bzr r7359)
Diffstat (limited to 'src/pencil-context.cpp')
-rw-r--r--src/pencil-context.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp
index 3e3a95c24..fc2088a17 100644
--- a/src/pencil-context.cpp
+++ b/src/pencil-context.cpp
@@ -257,15 +257,6 @@ pencil_handle_button_press(SPPencilContext *const pc, GdkEventButton const &beve
m.setup(desktop);
sp_canvas_set_snap_delay_active(desktop->canvas, true);
- if (bevent.state & GDK_CONTROL_MASK) {
- if (!(bevent.state & GDK_SHIFT_MASK)) {
- m.freeSnapReturnByRef(Inkscape::SnapPreferences::SNAPPOINT_NODE, p, Inkscape::SNAPSOURCE_HANDLE);
- }
- spdc_create_single_dot(event_context, p, "/tools/freehand/pencil", bevent.state);
- sp_canvas_set_snap_delay_active(desktop->canvas, false);
- ret = true;
- break;
- }
if (anchor) {
p = anchor->dp;
desktop->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Continuing selected path"));
@@ -425,11 +416,8 @@ pencil_handle_button_release(SPPencilContext *const pc, GdkEventButton const &re
case SP_PENCIL_CONTEXT_IDLE:
/* Releasing button in idle mode means single click */
/* We have already set up start point/anchor in button_press */
- if (!(revent.state & GDK_CONTROL_MASK)) {
- // Ctrl+click creates a single point so only set context in ADDLINE mode when Ctrl isn't pressed
- pc->state = SP_PENCIL_CONTEXT_ADDLINE;
- //sp_canvas_set_snap_delay_active(dt->canvas, true);
- }
+ pc->state = SP_PENCIL_CONTEXT_ADDLINE;
+ //sp_canvas_set_snap_delay_active(dt->canvas, true);
ret = TRUE;
break;
case SP_PENCIL_CONTEXT_ADDLINE: