summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-11-05 02:38:01 +0000
committerjabiertxof <info@marker.es>2016-11-05 02:38:01 +0000
commitdd38575e29e544156915a4400ad9cb4a412c9fe6 (patch)
tree7f63c68c440bfe8fbf4e44e1fd66b73849d83b29 /src/ui
parentFix bug:1639083 crach closing segment with shortcut LPE (diff)
downloadinkscape-dd38575e29e544156915a4400ad9cb4a412c9fe6.tar.gz
inkscape-dd38575e29e544156915a4400ad9cb4a412c9fe6.zip
Fix bug:1639098
Fixed bugs: - https://launchpad.net/bugs/1639098 (bzr r15211)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/tools/freehand-base.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ui/tools/freehand-base.cpp b/src/ui/tools/freehand-base.cpp
index 300324467..deb89b874 100644
--- a/src/ui/tools/freehand-base.cpp
+++ b/src/ui/tools/freehand-base.cpp
@@ -642,7 +642,10 @@ void spdc_concat_colors_and_flush(FreehandBase *dc, gboolean forceclosed)
}
// Step A - test, whether we ended on green anchor
- if ( forceclosed || ( dc->green_anchor && dc->green_anchor->active ) ) {
+ if ( (forceclosed &&
+ (!dc->sa || (dc->sa && dc->sa->curve->is_empty()))) ||
+ ( dc->green_anchor && dc->green_anchor->active))
+ {
// We hit green anchor, closing Green-Blue-Red
dc->desktop->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Path is closed."));
c->closepath_current();
@@ -724,7 +727,11 @@ void spdc_concat_colors_and_flush(FreehandBase *dc, gboolean forceclosed)
e->unref();
}
-
+ if (forceclosed)
+ {
+ dc->desktop->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Path is closed."));
+ c->closepath_current();
+ }
spdc_flush_white(dc, c);
c->unref();