[yocto] [matchbox-panel-2][PATCH 20/25] Fix a crash on startup
Jussi Kukkonen
jussi.kukkonen at intel.com
Tue May 3 04:30:39 PDT 2016
---
matchbox-panel/mb-panel-scaling-image2.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/matchbox-panel/mb-panel-scaling-image2.c b/matchbox-panel/mb-panel-scaling-image2.c
index 5692ce1..8cdc3a1 100644
--- a/matchbox-panel/mb-panel-scaling-image2.c
+++ b/matchbox-panel/mb-panel-scaling-image2.c
@@ -327,8 +327,10 @@ mb_panel_scaling_image2_draw (GtkWidget *widget, cairo_t *cr)
{
MBPanelScalingImage2 *image = MB_PANEL_SCALING_IMAGE2 (widget);
- gdk_cairo_set_source_pixbuf (cr, image->priv->pixbuf, 0.0, 0.0);
- cairo_paint (cr);
+ if (image->priv->pixbuf) {
+ gdk_cairo_set_source_pixbuf (cr, image->priv->pixbuf, 0.0, 0.0);
+ cairo_paint (cr);
+ }
return TRUE;
}
--
2.8.1
More information about the yocto
mailing list