summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/path-manipulator.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-03-20 00:47:49 +0000
committerJabiertxo Arraiza Zenotz <jtx@jtx.marker.es>2013-03-20 00:47:49 +0000
commitb887e821e03cae71b2116d58e64efb62eb9be0be (patch)
treead4373759ba94af268c100a6e98872dc12ff0690 /src/ui/tool/path-manipulator.cpp
parentFixing regression (diff)
downloadinkscape-b887e821e03cae71b2116d58e64efb62eb9be0be.tar.gz
inkscape-b887e821e03cae71b2116d58e64efb62eb9be0be.zip
For testing, widget added, regression fixed
(bzr r11950.1.62)
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
-rw-r--r--src/ui/tool/path-manipulator.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp
index 853d9336a..c3ab19a4e 100644
--- a/src/ui/tool/path-manipulator.cpp
+++ b/src/ui/tool/path-manipulator.cpp
@@ -1176,7 +1176,12 @@ void PathManipulator::_createControlPointsFromGeometry()
bool PathManipulator::isBSpline(){
LivePathEffect::LPEBSpline *lpe_bsp = NULL;
if (SP_LPE_ITEM(_path) && sp_lpe_item_has_path_effect(SP_LPE_ITEM(_path))){
- lpe_bsp = dynamic_cast<LivePathEffect::LPEBSpline*>(sp_lpe_item_has_path_effect_of_type(SP_LPE_ITEM(_path),Inkscape::LivePathEffect::BSPLINE)->getLPEObj()->get_lpe());
+ Inkscape::LivePathEffect::Effect* thisEffect = sp_lpe_item_has_path_effect_of_type(SP_LPE_ITEM(_path),Inkscape::LivePathEffect::BSPLINE);
+ if(thisEffect){
+ lpe_bsp = dynamic_cast<LivePathEffect::LPEBSpline*>(thisEffect->getLPEObj()->get_lpe());
+ }else{
+ lpe_bsp = NULL;
+ }
}else{
lpe_bsp = NULL;
}