summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/rect-tool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/tools/rect-tool.cpp')
-rw-r--r--src/ui/tools/rect-tool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tools/rect-tool.cpp b/src/ui/tools/rect-tool.cpp
index f6387d6dc..4000e4924 100644
--- a/src/ui/tools/rect-tool.cpp
+++ b/src/ui/tools/rect-tool.cpp
@@ -362,7 +362,7 @@ void RectTool::drag(Geom::Point const pt, guint state) {
SPDesktop *desktop = this->desktop;
if (!this->rect) {
- if (Inkscape::have_viable_layer(desktop, this->message_context) == false) {
+ if (Inkscape::have_viable_layer(desktop, defaultMessageContext()) == false) {
return;
}