mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-03 10:48:12 +08:00
committed by
Keavon Chambers
parent
a1b91c75c7
commit
bac34e3e64
@@ -186,7 +186,7 @@ impl Layer {
|
||||
match &self.data {
|
||||
LayerDataType::Shape(s) => Ok(&s.style),
|
||||
LayerDataType::Text(t) => Ok(&t.style),
|
||||
_ => return Err(DocumentError::NotAShape),
|
||||
_ => Err(DocumentError::NotAShape),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ impl Layer {
|
||||
match &mut self.data {
|
||||
LayerDataType::Shape(s) => Ok(&mut s.style),
|
||||
LayerDataType::Text(t) => Ok(&mut t.style),
|
||||
_ => return Err(DocumentError::NotAShape),
|
||||
_ => Err(DocumentError::NotAShape),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user