diff options
| author | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-09-18 12:26:41 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2019-09-19 22:36:45 +0000 |
| commit | b369a4be60fd0c9ac7f30a80023e732b19db022b (patch) | |
| tree | c1328e308b2b402dbaeff440c5df3bef66c14224 /src/ui/tools/pen-tool.cpp | |
| parent | Ctrl+Cmd+f FullScreen shortcut for macOS (diff) | |
| download | inkscape-b369a4be60fd0c9ac7f30a80023e732b19db022b.tar.gz inkscape-b369a4be60fd0c9ac7f30a80023e732b19db022b.zip | |
Crashfix: switch from active LPE tool (gitlab/420)
Diffstat (limited to 'src/ui/tools/pen-tool.cpp')
| -rw-r--r-- | src/ui/tools/pen-tool.cpp | 2 |
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); } |
