From b369a4be60fd0c9ac7f30a80023e732b19db022b Mon Sep 17 00:00:00 2001 From: Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> Date: Wed, 18 Sep 2019 22:26:41 +1000 Subject: Crashfix: switch from active LPE tool (gitlab/420) --- src/ui/tools/pen-tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3