Bug 680795 - GIMP segfaults in gimp_clipboard_set_buffer when...
Fix segfault in gimp_clipboard_set_buffer when n_target_entries is 0.
(cherry picked from commit e060da8278)
This commit is contained in:
parent
64b1ade7b0
commit
7fd0895c0c
1 changed files with 2 additions and 1 deletions
|
|
@ -514,7 +514,8 @@ gimp_clipboard_set_buffer (Gimp *gimp,
|
|||
G_OBJECT (gimp));
|
||||
|
||||
/* mark the first entry (image/png) as suitable for storing */
|
||||
gtk_clipboard_set_can_store (clipboard, gimp_clip->target_entries, 1);
|
||||
if (gimp_clip->n_target_entries > 0)
|
||||
gtk_clipboard_set_can_store (clipboard, gimp_clip->target_entries, 1);
|
||||
}
|
||||
else if (gtk_clipboard_get_owner (clipboard) == G_OBJECT (gimp))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue