summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8b56a29)
raw | patch | inline | side by side (parent: 8b56a29)
author | johncoswell <johncoswell@users.sourceforge.net> | |
Sun, 3 Sep 2006 20:52:14 +0000 (20:52 +0000) | ||
committer | johncoswell <johncoswell@users.sourceforge.net> | |
Sun, 3 Sep 2006 20:52:14 +0000 (20:52 +0000) |
src/pen-context.cpp | patch | blob | history |
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index 1136efb3462903347bf4c114a9631c73f2a07bc2..c050c888b0ffff0d17a2135d05d9b8b6ce65a76b 100644 (file)
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
case GDK_Return:
case GDK_KP_Enter:
if (pc->npoints != 0) {
- pen_disable_events(pc);
spdc_pen_finish(pc, FALSE);
- pen_enable_events(pc);
ret = TRUE;
}
break;
@@ -1149,6 +1147,8 @@ spdc_pen_finish_segment(SPPenContext *const pc, NR::Point const p, guint const s
static void
spdc_pen_finish(SPPenContext *const pc, gboolean const closed)
{
+ pen_disable_events(pc);
+
SPDesktop *const desktop = pc->desktop;
pc->_message_context->clear();
desktop->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Drawing finished"));
if (pc->green_anchor) {
pc->green_anchor = sp_draw_anchor_destroy(pc->green_anchor);
}
+
+ pen_enable_events(pc);
}
static void