[librsvg: 20/30] Handle two easy error cases from paint / paint_with_alpha
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 20/30] Handle two easy error cases from paint / paint_with_alpha
- Date: Wed, 23 Jun 2021 23:05:40 +0000 (UTC)
commit e9fce2a8d4a4b6d85c3d16242b2e0f943327a972
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Jun 21 18:52:21 2021 -0500
Handle two easy error cases from paint / paint_with_alpha
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/516>
src/drawing_ctx.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/drawing_ctx.rs b/src/drawing_ctx.rs
index e6f41992..a1db311f 100644
--- a/src/drawing_ctx.rs
+++ b/src/drawing_ctx.rs
@@ -824,9 +824,9 @@ impl DrawingCtx {
self.cr.set_operator(stacking_ctx.mix_blend_mode.into());
if opacity < 1.0 {
- self.cr.paint_with_alpha(opacity);
+ self.cr.paint_with_alpha(opacity)?;
} else {
- self.cr.paint();
+ self.cr.paint()?;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]