diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-03-09 22:28:58 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-03-09 22:28:58 +0000 |
| commit | ace6c9c979432b08666846212e2e67870af19e2a (patch) | |
| tree | 7ac22dc6b9b3282230130f2a501739b1f5808705 /src/pen-context.cpp | |
| parent | Generated SVG file from sk.po. (diff) | |
| download | inkscape-ace6c9c979432b08666846212e2e67870af19e2a.tar.gz inkscape-ace6c9c979432b08666846212e2e67870af19e2a.zip | |
Don't steal 'del' key in pen context when there is no curve being drawn (closes LP #200241)
(bzr r5015)
Diffstat (limited to 'src/pen-context.cpp')
| -rw-r--r-- | src/pen-context.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pen-context.cpp b/src/pen-context.cpp index 53b4dd652..b9a084ec1 100644 --- a/src/pen-context.cpp +++ b/src/pen-context.cpp @@ -999,8 +999,12 @@ pen_handle_key_press(SPPenContext *const pc, GdkEvent *event) case GDK_Delete: case GDK_KP_Delete: if (sp_curve_is_empty(pc->green_curve)) { - pen_cancel (pc); - ret = TRUE; + if (!sp_curve_is_empty(pc->red_curve)) { + pen_cancel (pc); + ret = TRUE; + } else { + // do nothing; this event should be handled upstream + } } else { /* Reset red curve */ sp_curve_reset(pc->red_curve); |
