summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pencil-tool.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-11-05 02:32:30 +0000
committerjabiertxof <info@marker.es>2016-11-05 02:32:30 +0000
commit05d344828f919fad7846d2d76534eb02b554dc00 (patch)
tree0d8c4e78b309123ef0d06e6ba28a2ded89d8f79f /src/ui/tools/pencil-tool.cpp
parentUpdate branding folder, remove fonts (diff)
downloadinkscape-05d344828f919fad7846d2d76534eb02b554dc00.tar.gz
inkscape-05d344828f919fad7846d2d76534eb02b554dc00.zip
Fix bug:1639083 crach closing segment with shortcut LPE
Fixed bugs: - https://launchpad.net/bugs/1639083 (bzr r15210)
Diffstat (limited to 'src/ui/tools/pencil-tool.cpp')
-rw-r--r--src/ui/tools/pencil-tool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/tools/pencil-tool.cpp b/src/ui/tools/pencil-tool.cpp
index 54106437c..ec2874823 100644
--- a/src/ui/tools/pencil-tool.cpp
+++ b/src/ui/tools/pencil-tool.cpp
@@ -588,8 +588,8 @@ void PencilTool::_setEndpoint(Geom::Point const &p) {
* Still not sure, how it will make most sense.
*/
void PencilTool::_finishEndpoint() {
- if ( ( this->red_curve->is_empty() )
- || ( *(this->red_curve->first_point()) == *(this->red_curve->second_point()) ) )
+ if (this->red_curve->is_unset() ||
+ this->red_curve->first_point() == this->red_curve->second_point())
{
this->red_curve->reset();
sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(this->red_bpath), NULL);