handle gimp_viewable_get_pixbuf() returning NULL. Fixes bug #171827.
2005-03-28 Sven Neumann <sven@gimp.org> * app/dialogs/resize-dialog.c (resize_dialog_new): handle gimp_viewable_get_pixbuf() returning NULL. Fixes bug #171827.
This commit is contained in:

committed by
Sven Neumann

parent
6ee2dbf0e9
commit
34d6cc9e83
@ -261,7 +261,8 @@ resize_dialog_new (GimpViewable *viewable,
|
||||
gimp_viewable_get_preview_size (viewable, 200, FALSE, TRUE, &width, &height);
|
||||
pixbuf = gimp_viewable_get_pixbuf (viewable, width, height);
|
||||
|
||||
gimp_offset_area_set_pixbuf (GIMP_OFFSET_AREA (private->area), pixbuf);
|
||||
if (pixbuf)
|
||||
gimp_offset_area_set_pixbuf (GIMP_OFFSET_AREA (private->area), pixbuf);
|
||||
|
||||
g_signal_connect (private->area, "offsets_changed",
|
||||
G_CALLBACK (offsets_changed),
|
||||
|
Reference in New Issue
Block a user