add_node_and_ancestors_to_stack(): Fix mutability

parent 3e99ac5a
......@@ -465,7 +465,7 @@ impl<'a> DrawingCtx {
}
}
pub fn add_node_and_ancestors_to_stack(&self, node: &RsvgNode) {
pub fn add_node_and_ancestors_to_stack(&mut self, node: &RsvgNode) {
self.drawsub_stack.push(node.clone());
if let Some(ref parent) = node.get_parent() {
self.add_node_and_ancestors_to_stack(parent);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment