From 8cef8c283bb8c2cde272bc0555f1233c994f7152 Mon Sep 17 00:00:00 2001 From: cilix42 Date: Fri, 4 Jul 2008 11:32:17 +0000 Subject: [PATCH] Make pen/pencil shapes work in spiro mode, too --- src/draw-context.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/draw-context.cpp b/src/draw-context.cpp index c946acabe..e8b755b9b 100644 --- a/src/draw-context.cpp +++ b/src/draw-context.cpp @@ -270,8 +270,11 @@ spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item) using namespace Inkscape::LivePathEffect; if (item) { - int shape = prefs_get_int_attribute("tools.freehand", "shape", 0); + if (prefs_get_int_attribute("tools.freehand", "spiro-spline-mode", 0)) { + Effect::createAndApply(SPIRO, dc->desktop->doc(), item); + } + int shape = prefs_get_int_attribute("tools.freehand", "shape", 0); bool shape_applied = false; SPCSSAttr *css_item = sp_css_attr_from_object (SP_OBJECT(item), SP_STYLE_FLAG_ALWAYS); const char *cstroke = sp_repr_css_property(css_item, "stroke", "none"); @@ -335,10 +338,6 @@ spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item) return; } - if (prefs_get_int_attribute("tools.freehand", "spiro-spline-mode", 0)) { - Effect::createAndApply(SPIRO, dc->desktop->doc(), item); - return; - } if (dc->waiting_LPE_type != INVALID_LPE) { Effect::createAndApply(dc->waiting_LPE_type, dc->desktop->doc(), item); dc->waiting_LPE_type = INVALID_LPE; -- 2.30.2