diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-07-31 12:43:10 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-07-31 12:43:10 +0000 |
| commit | 26288df8eb283c526aa8459e6779d780d8813a2e (patch) | |
| tree | 84cdbbd51732f88f506cf7492450cb0e63b1ae1a /src/draw-context.cpp | |
| parent | Fix wrong toggle activation in pen/pencil toolbar after startup (diff) | |
| download | inkscape-26288df8eb283c526aa8459e6779d780d8813a2e.tar.gz inkscape-26288df8eb283c526aa8459e6779d780d8813a2e.zip | |
New 'zigzag' (polylines) mode in pen tool
(bzr r6485)
Diffstat (limited to 'src/draw-context.cpp')
| -rw-r--r-- | src/draw-context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } } |
