summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c08c2af)
raw | patch | inline | side by side (parent: c08c2af)
author | cilix42 <cilix42@users.sourceforge.net> | |
Sun, 9 Mar 2008 22:28:58 +0000 (22:28 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Sun, 9 Mar 2008 22:28:58 +0000 (22:28 +0000) |
src/pen-context.cpp | patch | blob | history |
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index 53b4dd652a68efbc7e52e99d502469c201f22f09..b9a084ec1f79e1d975b7cccbf2fe6e8047a6f5b7 100644 (file)
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
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);