summaryrefslogtreecommitdiffstats
path: root/src/draw-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2009-02-19 22:37:11 +0000
committercilix42 <cilix42@users.sourceforge.net>2009-02-19 22:37:11 +0000
commit50fcbbef80d397e283fec3b2fff36815b49a1213 (patch)
tree6f5ec0378f54450e37799c1a9981231d78ae4881 /src/draw-context.cpp
parentSpell checker and filter translation (diff)
downloadinkscape-50fcbbef80d397e283fec3b2fff36815b49a1213.tar.gz
inkscape-50fcbbef80d397e283fec3b2fff36815b49a1213.zip
Remove superfluous FreehandShape LPE
(bzr r7330)
Diffstat (limited to 'src/draw-context.cpp')
-rw-r--r--src/draw-context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index 5e3ff82dc..a8d6187f6 100644
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
@@ -278,7 +278,7 @@ spdc_paste_curve_as_freehand_shape(const SPCurve *c, SPDrawContext *dc, SPItem *
// TODO: Don't paste path if nothing is on the clipboard
- Effect::createAndApply(Inkscape::LivePathEffect::FREEHAND_SHAPE, dc->desktop->doc(), item);
+ Effect::createAndApply(PATTERN_ALONG_PATH, dc->desktop->doc(), item);
Effect* lpe = sp_lpe_item_get_current_lpe(SP_LPE_ITEM(item));
gchar *svgd = sp_svg_write_path(c->get_pathvector());
static_cast<LPEPatternAlongPath*>(lpe)->pattern.paste_param_path(svgd);
@@ -391,7 +391,7 @@ spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item)
if (SP_IS_LPETOOL_CONTEXT(dc)) {
// since a geometric LPE was applied, we switch back to "inactive" mode
- lpetool_context_switch_mode(SP_LPETOOL_CONTEXT(dc), Inkscape::LivePathEffect::INVALID_LPE);
+ lpetool_context_switch_mode(SP_LPETOOL_CONTEXT(dc), INVALID_LPE);
}
}
if (SP_IS_PEN_CONTEXT(dc)) {