summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Applications/PixelPaint/ImageEditor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp
index f4478e7dd2..6862492e66 100644
--- a/Userland/Applications/PixelPaint/ImageEditor.cpp
+++ b/Userland/Applications/PixelPaint/ImageEditor.cpp
@@ -490,8 +490,11 @@ ErrorOr<void> ImageEditor::add_new_layer_from_selection()
void ImageEditor::set_active_tool(Tool* tool)
{
- if (m_active_tool == tool)
+ if (m_active_tool == tool) {
+ if (m_active_tool)
+ m_active_tool->setup(*this);
return;
+ }
if (m_active_tool)
m_active_tool->clear();