[gnome-games] savestate-listbox-row: Null-check pixbuf when drawing
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] savestate-listbox-row: Null-check pixbuf when drawing
- Date: Wed, 21 Aug 2019 23:37:05 +0000 (UTC)
commit 9005b8e2a81c2e5434a640a6b8f20a09dce3d7a1
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Thu Aug 22 04:36:55 2019 +0500
savestate-listbox-row: Null-check pixbuf when drawing
src/ui/savestate-listbox-row.vala | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/ui/savestate-listbox-row.vala b/src/ui/savestate-listbox-row.vala
index 56b17414..8a499f91 100644
--- a/src/ui/savestate-listbox-row.vala
+++ b/src/ui/savestate-listbox-row.vala
@@ -115,6 +115,9 @@ private class Games.SavestateListBoxRow : Gtk.ListBoxRow {
style.render_background (cr, 0.0, 0.0, width, height);
style.render_frame (cr, 0.0, 0.0, width, height);
+ if (pixbuf == null)
+ return Gdk.EVENT_PROPAGATE;
+
cr.save ();
cr.scale (1.0 / scale_factor, 1.0 / scale_factor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]