diff options
Diffstat (limited to 'src')
| -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); } |
