Skip to content

Commit

Permalink
prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Jun 8, 2024
1 parent 900c137 commit 310facd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions crates/usvg/src/text/flatten.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,11 @@ impl DatabaseExt for Database {
let node = if image.start_glyph_id == image.end_glyph_id {
Node::Group(Box::new(tree.root))
} else {
tree.root
.children
.iter()
.find(|n| n.id() == format!("glyph{}", glyph_id.0))
.cloned()
tree.node_by_id(&format!("glyph{}", glyph_id.0))
.log_none(|| {
log::warn!("Failed to find SVG glyph node for glyph {}", glyph_id.0)
})?
})
.cloned()?
};

Some(node)
Expand Down

0 comments on commit 310facd

Please sign in to comment.