[librsvg: 27/30] Ignore cairo errors when SavedCr is dropped
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 27/30] Ignore cairo errors when SavedCr is dropped
- Date: Wed, 23 Jun 2021 23:05:40 +0000 (UTC)
commit d4dc7f0fa2cf613ab81f7289ed23f21d6c93d945
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Jun 21 21:00:31 2021 -0500
Ignore cairo errors when SavedCr is dropped
Drop cannot fail, unfortunately. I think we can work towards removing
SavedCr within drawing_ctx.rs because now all the Cairo work is being
done there, and may be able to just mutate the context without
restoring it all the time.
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/516>
src/drawing_ctx.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/drawing_ctx.rs b/src/drawing_ctx.rs
index 0da7acf1..eaf18f39 100644
--- a/src/drawing_ctx.rs
+++ b/src/drawing_ctx.rs
@@ -258,7 +258,8 @@ impl SavedCr {
impl Drop for SavedCr {
fn drop(&mut self) {
- self.0.restore();
+ // Ignore cairo errors :(
+ let _ = self.0.restore();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]