From ec95a6057c8f6facbd4f39d8f213585c4b4a5b78 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Thu, 12 Jun 2008 13:23:48 +0000 Subject: When expecting mouse clicks for a LPE in pen context, don't concatenate with or continue existing paths (bzr r5904) --- src/draw-context.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/draw-context.cpp') diff --git a/src/draw-context.cpp b/src/draw-context.cpp index de030c7d5..a79be9fe7 100644 --- a/src/draw-context.cpp +++ b/src/draw-context.cpp @@ -138,6 +138,8 @@ sp_draw_context_dispose(GObject *object) dc->selection = NULL; } + dc->waiting_LPE_type = Inkscape::LivePathEffect::INVALID_LPE; + spdc_free_colors(dc); G_OBJECT_CLASS(draw_parent_class)->dispose(object); @@ -252,6 +254,9 @@ spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item) { using namespace Inkscape::LivePathEffect; + if (!SP_IS_PEN_CONTEXT(dc)) + return; + if (item) { if (prefs_get_int_attribute("tools.freehand", "spiro-spline-mode", 0)) { Effect::createAndApply(SPIRO, dc->desktop->doc(), item); @@ -259,7 +264,9 @@ spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item) } if (dc->waiting_LPE_type != INVALID_LPE) { Effect::createAndApply(dc->waiting_LPE_type, dc->desktop->doc(), item); + dc->waiting_LPE_type = INVALID_LPE; } + SP_PEN_CONTEXT(dc)->polylines_only = false; } } -- cgit v1.2.3