summaryrefslogtreecommitdiffstats
path: root/src/draw-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-06-12 13:30:04 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-06-12 13:30:04 +0000
commitfc4f26bfd123dff519dc4c2fd7eee8f4954e6d02 (patch)
treea54da8dbac25ca7b0d22dce17810d0aa82bf71f6 /src/draw-context.cpp
parentwhitespace (diff)
downloadinkscape-fc4f26bfd123dff519dc4c2fd7eee8f4954e6d02.tar.gz
inkscape-fc4f26bfd123dff519dc4c2fd7eee8f4954e6d02.zip
Fix bug: allow curved paths again when switching back from 'wait for path' mode in pen context
(bzr r5906)
Diffstat (limited to '')
-rw-r--r--src/draw-context.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index a79be9fe7..7b42e2196 100644
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
@@ -254,9 +254,6 @@ 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);
@@ -266,7 +263,9 @@ spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item)
Effect::createAndApply(dc->waiting_LPE_type, dc->desktop->doc(), item);
dc->waiting_LPE_type = INVALID_LPE;
}
- SP_PEN_CONTEXT(dc)->polylines_only = false;
+ if (SP_IS_PEN_CONTEXT(dc)) {
+ SP_PEN_CONTEXT(dc)->polylines_only = false;
+ }
}
}