summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pen-tool.cpp
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-11-22 05:59:31 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-12-03 09:35:13 +0000
commitda21d890c67eb751e12f0af89aac67ecb2629ca0 (patch)
tree0a100c27779967329616f87da2c7be8d613c9273 /src/ui/tools/pen-tool.cpp
parentReplace InkGC with std::shared_ptr for MessageStack (diff)
downloadinkscape-da21d890c67eb751e12f0af89aac67ecb2629ca0.tar.gz
inkscape-da21d890c67eb751e12f0af89aac67ecb2629ca0.zip
Use std::unique_ptr for all MessageContext
Diffstat (limited to 'src/ui/tools/pen-tool.cpp')
-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 d9feb89c2..89d100c71 100644
--- a/src/ui/tools/pen-tool.cpp
+++ b/src/ui/tools/pen-tool.cpp
@@ -390,7 +390,7 @@ bool PenTool::_handleButtonPress(GdkEventButton const &bevent) {
// make sure this is not the last click for a waiting LPE (otherwise we want to finish the path)
&& this->expecting_clicks_for_LPE != 1) {
- if (Inkscape::have_viable_layer(desktop, this->message_context) == false) {
+ if (Inkscape::have_viable_layer(desktop, defaultMessageContext()) == false) {
return true;
}