summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d7e43ef)
raw | patch | inline | side by side (parent: d7e43ef)
author | cilix42 <cilix42@users.sourceforge.net> | |
Thu, 12 Jun 2008 13:30:04 +0000 (13:30 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Thu, 12 Jun 2008 13:30:04 +0000 (13:30 +0000) |
src/draw-context.cpp | patch | blob | history |
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index a79be9fe7075db1705ef5050b64aed7637363546..7b42e219666d6ecced9e59c931e7a1bb7fb38cf6 100644 (file)
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
{
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);
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;
+ }
}
}