Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion crates/usvgr/src/parser/clippath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ pub(crate) fn convert(
let object_bbox = match object_bbox {
Some(v) => v,
None => {
log::warn!("Clipping of zero-sized shapes is not allowed.");
log::warn!(
"Clip path '{}' cannot be applied to a zero-sized element \
(it uses objectBoundingBox units). Skipped.",
node.element_id()
);
return None;
}
};
Expand Down
6 changes: 5 additions & 1 deletion crates/usvgr/src/parser/mask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ pub(crate) fn convert(
let object_bbox = match object_bbox {
Some(v) => v,
None => {
log::warn!("Masking of zero-sized shapes is not allowed.");
log::warn!(
"Mask '{}' cannot be applied to a zero-sized element \
(its content uses objectBoundingBox units). Skipped.",
node.element_id()
);
return None;
}
};
Expand Down
Loading