summaryrefslogtreecommitdiffstats
path: root/src/pen-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-01-19 23:31:25 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-01-19 23:31:25 +0000
commit0afd549c4559664e33bab5d20ccdeca2ae39026f (patch)
tree55346a8116895e0e54dd967dc7b08a4e8a2a50f5 /src/pen-context.cpp
parentFix bad markup in po/vi.po (diff)
downloadinkscape-0afd549c4559664e33bab5d20ccdeca2ae39026f.tar.gz
inkscape-0afd549c4559664e33bab5d20ccdeca2ae39026f.zip
Make creation of dots via Ctrl+click also possible in pen context; fill dots with current stroke color (and unset stroke); add preferences settings for dot radius and status bar messages; Shift+Ctrl+click varies the radius slightly
(bzr r4563)
Diffstat (limited to 'src/pen-context.cpp')
-rw-r--r--src/pen-context.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index f56714eb7..6eb534e54 100644
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
@@ -408,6 +408,12 @@ static gint pen_handle_button_press(SPPenContext *const pc, GdkEventButton const
case SP_PEN_CONTEXT_POINT:
if (pc->npoints == 0) {
+ if (bevent.state & GDK_CONTROL_MASK) {
+ freehand_create_single_dot(event_context, event_dt, "tools.freehand.pen", bevent.state & GDK_SHIFT_MASK);
+ ret = TRUE;
+ break;
+ }
+
/* Set start anchor */
pc->sa = anchor;
NR::Point p;