summaryrefslogtreecommitdiffstats
path: root/src/draw-context.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2013-10-04 21:57:28 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2013-10-04 21:57:28 +0000
commit4f857ae84089672e9c7378d327e54889f64c62fb (patch)
treeb899e1d4f41027674eeb35fc70e0fed4484e34b6 /src/draw-context.cpp
parentC++ (diff)
downloadinkscape-4f857ae84089672e9c7378d327e54889f64c62fb.tar.gz
inkscape-4f857ae84089672e9c7378d327e54889f64c62fb.zip
C++
(bzr r12660)
Diffstat (limited to 'src/draw-context.cpp')
-rw-r--r--src/draw-context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index a0241852c..498ff5bfb 100644
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
@@ -212,7 +212,7 @@ static void spdc_paste_curve_as_freehand_shape(const SPCurve *c, SPDrawContext *
// TODO: Don't paste path if nothing is on the clipboard
Effect::createAndApply(PATTERN_ALONG_PATH, dc->desktop->doc(), item);
- Effect* lpe = sp_lpe_item_get_current_lpe(SP_LPE_ITEM(item));
+ Effect* lpe = SP_LPE_ITEM(item)->getCurrentLPE();
gchar *svgd = sp_svg_write_path(c->get_pathvector());
static_cast<LPEPatternAlongPath*>(lpe)->pattern.paste_param_path(svgd);
}
@@ -222,7 +222,7 @@ static void spdc_apply_powerstroke_shape(const std::vector<Geom::Point> & points
using namespace Inkscape::LivePathEffect;
Effect::createAndApply(POWERSTROKE, dc->desktop->doc(), item);
- Effect* lpe = sp_lpe_item_get_current_lpe(SP_LPE_ITEM(item));
+ Effect* lpe = SP_LPE_ITEM(item)->getCurrentLPE();
static_cast<LPEPowerStroke*>(lpe)->offset_points.param_set_and_write_new_value(points);
// write powerstroke parameters:
@@ -297,7 +297,7 @@ static void spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item
{
// take shape from clipboard; TODO: catch the case where clipboard is empty
Effect::createAndApply(PATTERN_ALONG_PATH, dc->desktop->doc(), item);
- Effect* lpe = sp_lpe_item_get_current_lpe(SP_LPE_ITEM(item));
+ Effect* lpe = SP_LPE_ITEM(item)->getCurrentLPE();
static_cast<LPEPatternAlongPath*>(lpe)->pattern.on_paste_button_click();
shape_applied = true;