summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pen-tool.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-03-20 00:48:37 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-03-20 00:48:37 +0000
commit67a180fdd31fd8dd06be4df75356509001295458 (patch)
treefaec7c3bc12ac848068262cdbe2f0e92dd3664c2 /src/ui/tools/pen-tool.cpp
parentupdate to trunk (diff)
downloadinkscape-67a180fdd31fd8dd06be4df75356509001295458.tar.gz
inkscape-67a180fdd31fd8dd06be4df75356509001295458.zip
Refactor of anchors
(bzr r11950.1.306)
Diffstat (limited to 'src/ui/tools/pen-tool.cpp')
-rw-r--r--src/ui/tools/pen-tool.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ui/tools/pen-tool.cpp b/src/ui/tools/pen-tool.cpp
index 75dd6a32b..1701cf5d9 100644
--- a/src/ui/tools/pen-tool.cpp
+++ b/src/ui/tools/pen-tool.cpp
@@ -1516,8 +1516,8 @@ void PenTool::_bspline_spiro_start_anchor_on()
if (this->sa->start) {
tmpCurve = tmpCurve->create_reverse();
}
- this->sa->curve->reset();
- this->sa->curve = tmpCurve;
+ this->sc->reset();
+ this->sc = tmpCurve;
}
void PenTool::_bspline_spiro_start_anchor_off()
@@ -1542,8 +1542,8 @@ void PenTool::_bspline_spiro_start_anchor_off()
if (this->sa->start) {
tmpCurve = tmpCurve->create_reverse();
}
- this->sa->curve->reset();
- this->sa->curve = tmpCurve;
+ this->sc->reset();
+ this->sc = tmpCurve;
}
}
@@ -1677,8 +1677,8 @@ void PenTool::_bspline_spiro_end_anchor_on()
if (!this->sa->start) {
tmpCurve = tmpCurve->create_reverse();
}
- this->sa->curve->reset();
- this->sa->curve = tmpCurve;
+ this->sc->reset();
+ this->sc = tmpCurve;
}
}
@@ -1726,8 +1726,8 @@ void PenTool::_bspline_spiro_end_anchor_off()
if (!this->sa->start) {
tmpCurve = tmpCurve->create_reverse();
}
- this->sa->curve->reset();
- this->sa->curve = tmpCurve;
+ this->sc->reset();
+ this->sc = tmpCurve;
}
}
}
@@ -1742,7 +1742,7 @@ void PenTool::_bspline_spiro_build()
SPCurve *curve = new SPCurve();
//If we continuate the existing curve we add it at the start
if(this->sa && !this->sa->curve->is_empty()){
- curve = this->sa->curve->copy();
+ curve = this->sc->copy();
if (this->sa->start) {
curve = curve->create_reverse();
}