M1: reword the vector segment style import notes

This commit is contained in:
Skyfuller1303
2026-10-16 09:40:04 +02:00
parent 120b6830ff
commit d8e64a73bf
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1302,10 +1302,10 @@ impl<'a> Mapper<'a> {
}
}
if has_uninterpreted {
self.warn("metadata for styled vector network segments was not interpreted");
self.warn("style settings of some vector segments aren't supported; those segments use the layer's stroke");
}
if has_missing {
self.warn("vector network segments reference missing style entries");
self.warn("some vector segments refer to style settings missing from the file; they use the layer's stroke");
}
// An open path shows its fill, which regions can't hold: the outline keeps the look.
let fills_shown =
+3 -3
View File
@@ -280,9 +280,9 @@ fn per_segment_stroke_styles_are_reported() {
};
assert_eq!(network::decode_styled(&square_blob()).unwrap().1, 0);
let plain = import(&tail_canvas(), "Tail").unwrap().1;
assert!(!plain.iter().any(|w| w.contains("vector network segments")), "{plain:?}");
let uninterpreted = |w: &String| w.contains("metadata for styled vector network segments was not interpreted");
let missing = |w: &String| w.contains("vector network segments reference missing style entries");
assert!(!plain.iter().any(|w| w.contains("vector segments")), "{plain:?}");
let uninterpreted = |w: &String| w.contains("style settings of some vector segments aren't supported; those segments use the layer's stroke");
let missing = |w: &String| w.contains("some vector segments refer to style settings missing from the file; they use the layer's stroke");
// Style 1 has a row in the layer's override table; its contents are not applied.
let known = styled_import(1);
assert_eq!(known.iter().filter(|w| uninterpreted(w)).count(), 1, "{known:?}");