From da21d890c67eb751e12f0af89aac67ecb2629ca0 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 22 Nov 2018 06:59:31 +0100 Subject: Use std::unique_ptr for all MessageContext --- src/ui/tools/pencil-tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/tools/pencil-tool.cpp') diff --git a/src/ui/tools/pencil-tool.cpp b/src/ui/tools/pencil-tool.cpp index eac7c585f..8e1966f4c 100644 --- a/src/ui/tools/pencil-tool.cpp +++ b/src/ui/tools/pencil-tool.cpp @@ -178,7 +178,7 @@ bool PencilTool::_handleButtonPress(GdkEventButton const &bevent) { if ( bevent.button == 1 && !this->space_panning) { Inkscape::Selection *selection = desktop->getSelection(); - if (Inkscape::have_viable_layer(desktop, this->message_context) == false) { + if (Inkscape::have_viable_layer(desktop, defaultMessageContext()) == false) { return true; } -- cgit v1.2.3