From 26288df8eb283c526aa8459e6779d780d8813a2e Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Thu, 31 Jul 2008 12:43:10 +0000 Subject: New 'zigzag' (polylines) mode in pen tool (bzr r6485) --- src/draw-context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/draw-context.cpp') diff --git a/src/draw-context.cpp b/src/draw-context.cpp index e067e4545..c7676be9e 100644 --- a/src/draw-context.cpp +++ b/src/draw-context.cpp @@ -278,7 +278,7 @@ spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item) using namespace Inkscape::LivePathEffect; if (item && SP_IS_LPE_ITEM(item)) { - if (prefs_get_int_attribute(tool_name(dc), "freehand-mode", 0)) { + if (prefs_get_int_attribute(tool_name(dc), "freehand-mode", 0) == 1) { Effect::createAndApply(SPIRO, dc->desktop->doc(), item); } @@ -368,7 +368,7 @@ spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item) dc->waiting_LPE_type = INVALID_LPE; } if (SP_IS_PEN_CONTEXT(dc)) { - SP_PEN_CONTEXT(dc)->polylines_only = false; + SP_PEN_CONTEXT(dc)->polylines_only = (prefs_get_int_attribute("tools.freehand.pen", "freehand-mode", 0) == 2); } } } -- cgit v1.2.3