summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pen-tool.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-03-20 02:27:13 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-03-20 02:27:13 +0000
commit9c0d852d84da8af9cbb07ee2ed0488390225f126 (patch)
tree08f57351249cada5230c0e8057b3836189cbac58 /src/ui/tools/pen-tool.cpp
parentupdate to trunk (diff)
downloadinkscape-9c0d852d84da8af9cbb07ee2ed0488390225f126.tar.gz
inkscape-9c0d852d84da8af9cbb07ee2ed0488390225f126.zip
Full refactor of path continuations in bspline-spirolive mode, I think no more suv mac crashes, but need to be full tested again because a lot of things changed.
(bzr r11950.1.308)
Diffstat (limited to 'src/ui/tools/pen-tool.cpp')
-rw-r--r--src/ui/tools/pen-tool.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/tools/pen-tool.cpp b/src/ui/tools/pen-tool.cpp
index 1701cf5d9..3ef9b96af 100644
--- a/src/ui/tools/pen-tool.cpp
+++ b/src/ui/tools/pen-tool.cpp
@@ -1516,7 +1516,6 @@ void PenTool::_bspline_spiro_start_anchor_on()
if (this->sa->start) {
tmpCurve = tmpCurve->create_reverse();
}
- this->sc->reset();
this->sc = tmpCurve;
}
@@ -1542,7 +1541,6 @@ void PenTool::_bspline_spiro_start_anchor_off()
if (this->sa->start) {
tmpCurve = tmpCurve->create_reverse();
}
- this->sc->reset();
this->sc = tmpCurve;
}
@@ -1677,7 +1675,6 @@ void PenTool::_bspline_spiro_end_anchor_on()
if (!this->sa->start) {
tmpCurve = tmpCurve->create_reverse();
}
- this->sc->reset();
this->sc = tmpCurve;
}
}
@@ -2176,6 +2173,8 @@ void PenTool::_finish(gboolean const closed) {
// cancelate line without a created segment
this->red_curve->reset();
spdc_concat_colors_and_flush(this, closed);
+ this->sc = NULL;
+ this->ec = NULL;
this->sa = NULL;
this->ea = NULL;