mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 14:50:09 +00:00
Color management: removing a profile redraws only when the canvas changes
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.
This commit is contained in:
@@ -260,7 +260,10 @@ fn remove_profile(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
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}))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user