From 68bc931be9ef891e4605e063e0078dcfdd0ea8c9 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Tue, 19 Feb 2008 01:42:46 +0000 Subject: Union paths automatically in pencil and calligraphy context when Shift-Lock is pressed (closes: LP 190846) (bzr r4771) --- src/dyna-draw-context.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dyna-draw-context.cpp') diff --git a/src/dyna-draw-context.cpp b/src/dyna-draw-context.cpp index 666ea4d2d..d4cd49cac 100644 --- a/src/dyna-draw-context.cpp +++ b/src/dyna-draw-context.cpp @@ -888,7 +888,8 @@ sp_dyna_draw_context_root_handler(SPEventContext *event_context, /* Create object */ fit_and_split(dc, TRUE); accumulate_calligraphic(dc); - set_to_accumulated(dc, event->button.state & GDK_SHIFT_MASK); // performs document_done + set_to_accumulated(dc, (event->button.state & GDK_SHIFT_MASK) || + (event->button.state & GDK_LOCK_MASK)); // performs document_done /* reset accumulated curve */ sp_curve_reset(dc->accumulated); -- cgit v1.2.3