summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-09-18 12:26:41 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2019-09-19 22:36:45 +0000
commitb369a4be60fd0c9ac7f30a80023e732b19db022b (patch)
treec1328e308b2b402dbaeff440c5df3bef66c14224
parentCtrl+Cmd+f FullScreen shortcut for macOS (diff)
downloadinkscape-b369a4be60fd0c9ac7f30a80023e732b19db022b.tar.gz
inkscape-b369a4be60fd0c9ac7f30a80023e732b19db022b.zip
Crashfix: switch from active LPE tool (gitlab/420)
-rw-r--r--src/ui/tools/pen-tool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tools/pen-tool.cpp b/src/ui/tools/pen-tool.cpp
index c431806b5..84297a0c1 100644
--- a/src/ui/tools/pen-tool.cpp
+++ b/src/ui/tools/pen-tool.cpp
@@ -147,7 +147,7 @@ PenTool::~PenTool() {
this->cl1 = nullptr;
}
- if (this->expecting_clicks_for_LPE > 0) {
+ if (this->waiting_item && this->expecting_clicks_for_LPE > 0) {
// we received too few clicks to sanely set the parameter path so we remove the LPE from the item
this->waiting_item->removeCurrentPathEffect(false);
}