Of course, we only need to snapshot if both width and height > 0,
otherwise the result is invisible.
/* Offset to content allocation */
gtk_snapshot_offset (snapshot, margin.left + padding.left + border.left, margin.top + border.top + padding.top);
- if (gtk_widget_get_width (widget) > 0 || gtk_widget_get_height (widget) > 0)
+ if (gtk_widget_get_width (widget) > 0 && gtk_widget_get_height (widget) > 0)
klass->snapshot (widget, snapshot);
gtk_snapshot_offset (snapshot, - (margin.left + padding.left + border.left), -(margin.top + border.top + padding.top));