summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/LayerListWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/PixelPaint/LayerListWidget.cpp')
-rw-r--r--Userland/Applications/PixelPaint/LayerListWidget.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/LayerListWidget.cpp b/Userland/Applications/PixelPaint/LayerListWidget.cpp
index 6ffddc9e34..83ca9305f5 100644
--- a/Userland/Applications/PixelPaint/LayerListWidget.cpp
+++ b/Userland/Applications/PixelPaint/LayerListWidget.cpp
@@ -231,11 +231,20 @@ void LayerListWidget::image_did_remove_layer(size_t layer_index)
relayout_gadgets();
}
-void LayerListWidget::image_did_modify_layer(size_t layer_index)
+void LayerListWidget::image_did_modify_layer_properties(size_t layer_index)
{
update(m_gadgets[layer_index].rect);
}
+void LayerListWidget::image_did_modify_layer_bitmap(size_t layer_index)
+{
+ Gfx::IntRect adjusted_rect;
+ Gfx::IntRect thumbnail_rect;
+ Gfx::IntRect text_rect;
+ get_gadget_rects(m_gadgets[layer_index], adjusted_rect, thumbnail_rect, text_rect);
+ update(thumbnail_rect);
+}
+
void LayerListWidget::image_did_modify_layer_stack()
{
rebuild_gadgets();