mirror of https://github.com/GNOME/gimp.git
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:
parent
6ee2dbf0e9
commit
34d6cc9e83
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
||||
2005-03-26 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* plug-ins/script-fu/script-fu-scripts.c (script_fu_find_scripts):
|
||||
|
|
|
@ -261,6 +261,7 @@ resize_dialog_new (GimpViewable *viewable,
|
|||
gimp_viewable_get_preview_size (viewable, 200, FALSE, TRUE, &width, &height);
|
||||
pixbuf = gimp_viewable_get_pixbuf (viewable, width, height);
|
||||
|
||||
if (pixbuf)
|
||||
gimp_offset_area_set_pixbuf (GIMP_OFFSET_AREA (private->area), pixbuf);
|
||||
|
||||
g_signal_connect (private->area, "offsets_changed",
|
||||
|
|
Loading…
Reference in New Issue