From eedaac6439c0c4edb489643335fcfc003607bf08 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 4 Oct 2013 22:24:32 +0200 Subject: LPE: add some const correctness, remove unused function, and fix potential crash bug (bzr r12656) --- src/sp-path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sp-path.cpp') diff --git a/src/sp-path.cpp b/src/sp-path.cpp index af2f02328..5c347e485 100644 --- a/src/sp-path.cpp +++ b/src/sp-path.cpp @@ -265,7 +265,7 @@ Geom::Affine SPPath::set_transform(Geom::Affine const &transform) { // Transform the original-d path if this is a valid LPE this, other else the (ordinary) path if (_curve_before_lpe && hasPathEffectRecursive()) { - if (getPathEffectOfType(Inkscape::LivePathEffect::CLONE_ORIGINAL)) { + if (this->hasPathEffectOfType(Inkscape::LivePathEffect::CLONE_ORIGINAL)) { // if path has the CLONE_ORIGINAL LPE applied, don't write the transform to the pathdata, but write it 'unoptimized' return transform; } else { -- cgit v1.2.3 From 9a2c4ca30ed332442428594438848b9de2e589a9 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 4 Oct 2013 23:18:20 +0200 Subject: C++ (bzr r12659) --- src/sp-path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sp-path.cpp') diff --git a/src/sp-path.cpp b/src/sp-path.cpp index 5c347e485..bd923d058 100644 --- a/src/sp-path.cpp +++ b/src/sp-path.cpp @@ -76,7 +76,7 @@ gchar* SPPath::description() { if (hasPathEffect()) { Glib::ustring s; - PathEffectList effect_list = sp_lpe_item_get_effect_list(this); + PathEffectList effect_list = this->getEffectList(); for (PathEffectList::iterator it = effect_list.begin(); it != effect_list.end(); ++it) { -- cgit v1.2.3 From 4f857ae84089672e9c7378d327e54889f64c62fb Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 4 Oct 2013 23:57:28 +0200 Subject: C++ (bzr r12660) --- src/sp-path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sp-path.cpp') diff --git a/src/sp-path.cpp b/src/sp-path.cpp index bd923d058..b225f0735 100644 --- a/src/sp-path.cpp +++ b/src/sp-path.cpp @@ -307,7 +307,7 @@ g_message("sp_path_update_patheffect"); * This is very important for LPEs to work properly! (the bbox might be recalculated depending on the curve in shape)*/ this->setCurveInsync(curve, TRUE); - bool success = sp_lpe_item_perform_path_effect(this, curve); + bool success = this->performPathEffect(curve); if (success && write) { // could also do this->getRepr()->updateRepr(); but only the d attribute needs updating. -- cgit v1.2.3