summaryrefslogtreecommitdiffstats
path: root/src/draw-context.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-10-05 00:53:12 +0000
committerJabiertxof <jtx@jtx.marker.es>2013-10-05 00:53:12 +0000
commit995c8028b521eb7d17334e6f6d34bbb54949a48b (patch)
tree6d2e811cfbfe459d31edfd9234bdda8bab57788b /src/draw-context.cpp
parentupdate to trunk (diff)
parentC++ (diff)
downloadinkscape-995c8028b521eb7d17334e6f6d34bbb54949a48b.tar.gz
inkscape-995c8028b521eb7d17334e6f6d34bbb54949a48b.zip
update to trunk
(bzr r12588.1.11)
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 618a9c240..62e96a21c 100644
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
@@ -213,7 +213,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);
}
@@ -223,7 +223,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:
@@ -315,7 +315,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();
Inkscape::UI::ClipboardManager *cm = Inkscape::UI::ClipboardManager::get();
Glib::ustring svgd = cm->getPathParameter(SP_ACTIVE_DESKTOP);