mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
shell-util: ensure we've a valid n_captures when capturing images
https://bugzilla.gnome.org/show_bug.cgi?id=765011
This commit is contained in:
parent
b099e9a69c
commit
4c2fd513f4
1 changed files with 2 additions and 0 deletions
|
|
@ -461,6 +461,8 @@ shell_util_composite_capture_images (ClutterCapture *captures,
|
|||
cairo_surface_t *image;
|
||||
cairo_t *cr;
|
||||
|
||||
g_assert (n_captures > 0);
|
||||
|
||||
target_scale = 0.0;
|
||||
for (i = 0; i < n_captures; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue