mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-22 19:08:51 +00:00
M1: reword the unresolved point style import note
This commit is contained in:
1 parent
924310c124
commit
771f7e869f
2 files changed
+7
-2
No files matched your search
@@ -942,7 +942,7 @@ impl<'a> Mapper<'a> {
|
||||
self.warn("filled areas of a vector with their own fill use the layer's fill");
|
||||
}
|
||||
if unresolved_style {
|
||||
self.warn("vector points with unresolved style IDs lost their point styles");
|
||||
self.warn("some vector points refer to point settings missing from the file; they use the layer's joins and plain corners");
|
||||
}
|
||||
if unknown_join {
|
||||
self.warn("vector points with unknown stroke joins use the layer join");
|
||||
|
||||
@@ -301,7 +301,12 @@ fn vectors_import_as_editable_networks() {
|
||||
let fallback = network_of(&doc, "Join Fallbacks");
|
||||
assert!(fallback.vertices.iter().all(|v| v.join.is_none()));
|
||||
assert_eq!(named(&doc, "Join Fallbacks").stroke.join, StrokeJoin::Miter);
|
||||
assert!(warnings.iter().any(|w| w.contains("unresolved style IDs lost their point styles")), "{warnings:?}");
|
||||
assert!(
|
||||
warnings
|
||||
.iter()
|
||||
.any(|w| w.contains("vector points refer to point settings missing from the file; they use the layer's joins and plain corners")),
|
||||
"{warnings:?}"
|
||||
);
|
||||
assert!(warnings.iter().any(|w| w.contains("unknown stroke joins use the layer join")), "{warnings:?}");
|
||||
assert!(warnings.iter().any(|w| w.contains("dashed or variable-width strokes render with the layer join")), "{warnings:?}");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user