From 127229d188a1aefbd19d6fc9ba9a94a868700747 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Thu, 12 Nov 2026 13:42:04 -0800 Subject: [PATCH] Color management: removing a profile redraws only when the canvas changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit color.removeProfile gave every open document a new revision for any removed profile. It now redraws when the removed profile was an assigned profile in use, which the working space replaces, or the CMYK profile View → Proof Setup targets. Removing any other profile leaves the revisions unchanged, which loading_or_removing_the_proof_profile_redraws checks. --- crates/engine/src/cmd/colormgmt.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/cmd/colormgmt.rs b/crates/engine/src/cmd/colormgmt.rs index a1ef61eb6c..18d4e26704 100644 --- a/crates/engine/src/cmd/colormgmt.rs +++ b/crates/engine/src/cmd/colormgmt.rs @@ -260,7 +260,10 @@ fn remove_profile(s: &mut Session, p: &Value) -> Result { if active.rgb == name || active.cmyk == name { use_front_profiles(s); } - touch_all(s); + // The CMYK profile View → Proof Setup targets: redraw. + if proof_targets(&info.name) { + touch_all(s); + } Ok(json!({"removed": info.name})) }