From c144e36d9c3b522dd7e1cd7464d914ecddca0c7c Mon Sep 17 00:00:00 2001 From: David Mann Date: Wed, 4 Nov 2026 17:32:59 +0100 Subject: [PATCH] Fix-up #11077 (review): say that pixels past the canvas count for Empty Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/panels/layer_filter_ui/attribute.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/panels/layer_filter_ui/attribute.rs b/crates/ui-egui/src/panels/layer_filter_ui/attribute.rs index e627a9d8a8a..10e8edc5411 100644 --- a/crates/ui-egui/src/panels/layer_filter_ui/attribute.rs +++ b/crates/ui-egui/src/panels/layer_filter_ui/attribute.rs @@ -140,7 +140,9 @@ impl Attribute { } } -/// Whether `l` is a pixel layer with no visible pixels on `canvas`; an empty group isn't listed. +/// Whether `l` is a pixel layer with no visible pixels; an empty group isn't listed. Stored pixels +/// past the canvas count (they are the layer's, Reveal All brings them back); `canvas` only bounds +/// the check for a layer whose default pixel is opaque (see [`has_visible_pixels`]). fn is_empty(l: &Layer, canvas: Option) -> bool { matches!(&l.content, LayerContent::Raster(s) if !has_visible_pixels(s, canvas)) }