with_discrete_layer(): Propagate errors from cairo::ImageSurface::create()

This is the second part of #345.
parent 78c2ab10
......@@ -405,7 +405,7 @@ impl<'a> DrawingCtx<'a> {
cairo::Format::ARgb32,
self.rect.width as i32,
self.rect.height as i32,
).unwrap();
)?;
if filter.is_some() {
self.surfaces_stack.push(surface.clone());
......
<svg>
<path d="M0,0 L1,0 L100000,100000" style="opacity:0"/>
</svg>
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