diff options
| author | root <root@jtx.marker.es> | 2013-10-05 00:49:20 +0000 |
|---|---|---|
| committer | root <root@jtx.marker.es> | 2013-10-05 00:49:20 +0000 |
| commit | 0de4a7013187366efbeeb5887191b6ea57445899 (patch) | |
| tree | 4403a23f086824c3f43a0d60853e625f5ce5c635 /src/draw-context.cpp | |
| parent | update to trunk (diff) | |
| parent | C++ (diff) | |
| download | inkscape-0de4a7013187366efbeeb5887191b6ea57445899.tar.gz inkscape-0de4a7013187366efbeeb5887191b6ea57445899.zip | |
update to trunk
(bzr r11950.1.159)
Diffstat (limited to 'src/draw-context.cpp')
| -rw-r--r-- | src/draw-context.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp index 37d2b0e56..dafb773f6 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: @@ -303,7 +303,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; |
