summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/path-manipulator.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-09-26 16:28:28 +0000
committerJabiertxof <jtx@jtx.marker.es>2013-09-26 16:28:28 +0000
commit987dd0e7eae4dded4049771af56b72889d05c461 (patch)
treea42fe00ea2d92865fe68877bf9867e1028b7ff8b /src/ui/tool/path-manipulator.cpp
parentUpdate to trunk (diff)
downloadinkscape-987dd0e7eae4dded4049771af56b72889d05c461.tar.gz
inkscape-987dd0e7eae4dded4049771af56b72889d05c461.zip
Compiling problem solved thaks to ~suv
(bzr r11950.1.149)
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
-rw-r--r--src/ui/tool/path-manipulator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp
index e08a36e2e..dac67295a 100644
--- a/src/ui/tool/path-manipulator.cpp
+++ b/src/ui/tool/path-manipulator.cpp
@@ -152,12 +152,14 @@ PathManipulator::PathManipulator(MultiPathManipulator &mpm, SPPath *path,
_createControlPointsFromGeometry();
//BSpline
lpe_bsp = NULL;
- if (SP_IS_LPE_ITEM(_path) && sp_lpe_item_has_path_effect(SP_LPE_ITEM(_path))){
- Inkscape::LivePathEffect::Effect* thisEffect = sp_lpe_item_has_path_effect_of_type(SP_LPE_ITEM(_path),Inkscape::LivePathEffect::BSPLINE);
+
+ if (_path->hasPathEffect()){
+ Inkscape::LivePathEffect::Effect* thisEffect = SP_LPE_ITEM(_path)->getPathEffectOfType(Inkscape::LivePathEffect::BSPLINE);
if(thisEffect){
lpe_bsp = dynamic_cast<LivePathEffect::LPEBSpline*>(thisEffect->getLPEObj()->get_lpe());
}
}
+
if(lpe_bsp){
isBSpline = true;
}