summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pen-tool.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-03-19 22:05:50 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-03-19 22:05:50 +0000
commit988c4a1639ca097634e336d49ad92eb1eb576f31 (patch)
treecf28a419a9ea49e6a371e003bea0561cc4ef3165 /src/ui/tools/pen-tool.cpp
parentFixing suv mac bug continuing existing bsplines/spiro paths (diff)
downloadinkscape-988c4a1639ca097634e336d49ad92eb1eb576f31.tar.gz
inkscape-988c4a1639ca097634e336d49ad92eb1eb576f31.zip
Fix a bug when starting path with change from bspline to spiro and inverse
(bzr r11950.1.304)
Diffstat (limited to 'src/ui/tools/pen-tool.cpp')
-rw-r--r--src/ui/tools/pen-tool.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/tools/pen-tool.cpp b/src/ui/tools/pen-tool.cpp
index d79803644..75dd6a32b 100644
--- a/src/ui/tools/pen-tool.cpp
+++ b/src/ui/tools/pen-tool.cpp
@@ -1445,6 +1445,10 @@ void PenTool::_bspline_spiro_off()
void PenTool::_bspline_spiro_start_anchor(bool shift)
{
+ if(this->sa->curve->is_empty()){
+ return;
+ }
+
LivePathEffect::LPEBSpline *lpe_bsp = NULL;
if (SP_IS_LPE_ITEM(this->white_item) && SP_LPE_ITEM(this->white_item)->hasPathEffect()){
@@ -1474,9 +1478,6 @@ void PenTool::_bspline_spiro_start_anchor(bool shift)
if(!this->spiro && !this->bspline)
return;
- if(this->sa->curve->is_empty())
- return;
-
if(shift)
this->_bspline_spiro_start_anchor_off();
else