Log when we find a circular reference

parent b421cae5
......@@ -247,8 +247,11 @@ fn resolve_pattern(pattern: &Pattern, draw_ctx: &mut DrawingCtx<'_>) -> Pattern
let node = acquired.get();
if stack.contains(node) {
// FIXME: return a Result here with RenderingError::CircularReference
// FIXME: print the pattern's name
rsvg_log!("circular reference in pattern");
break; // reference cycle; bail out
node.with_impl(|i: &NodePattern| result.resolve_from_fallback(&*i.pattern.borrow()));
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