🐛 Fix set path attrs (#6589)

This commit is contained in:
Alejandro Alonso 2025-05-29 12:27:08 +02:00 committed by GitHub
parent eafea7aec9
commit 2650eccd09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -542,7 +542,7 @@ impl Shape {
pub fn set_path_attr(&mut self, name: String, value: String) {
match self.shape_type {
Type::Path(_) => {
Type::Path(_) | Type::Bool(_) => {
self.set_svg_attr(name, value);
}
_ => unreachable!("This shape should have path attrs"),