summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorTim Ledbetter <timledbetter@gmail.com>2023-02-23 18:19:32 +0000
committerJelle Raaijmakers <jelle@gmta.nl>2023-03-15 23:56:47 +0100
commitda0ec8e6353900155e7f6f1f320262bf47017b0b (patch)
tree82d877965b893aab018a2570dd4c6daedc920942 /Userland/Applications
parent9f75c2b075b7d9c2bd68bef20c5da67b4833eb34 (diff)
downloadserenity-da0ec8e6353900155e7f6f1f320262bf47017b0b.zip
PixelPaint: Repaint clone tool sample marker on size change
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/PixelPaint/Tools/CloneTool.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/Tools/CloneTool.cpp b/Userland/Applications/PixelPaint/Tools/CloneTool.cpp
index 8b73bf1a8f..d249aa8212 100644
--- a/Userland/Applications/PixelPaint/Tools/CloneTool.cpp
+++ b/Userland/Applications/PixelPaint/Tools/CloneTool.cpp
@@ -144,7 +144,9 @@ ErrorOr<GUI::Widget*> CloneTool::get_properties_widget()
size_slider->set_value(size());
size_slider->on_change = [this](int value) {
+ auto old_sample_marker_rect = sample_marker_rect();
set_size(value);
+ update_sample_marker(old_sample_marker_rect);
};
set_primary_slider(size_slider);