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:
Sven Neumann 2005-03-28 00:11:43 +00:00 committed by Sven Neumann
parent 6ee2dbf0e9
commit 34d6cc9e83
2 changed files with 7 additions and 1 deletions

View File

@ -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> 2005-03-26 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c (script_fu_find_scripts): * plug-ins/script-fu/script-fu-scripts.c (script_fu_find_scripts):

View File

@ -261,7 +261,8 @@ resize_dialog_new (GimpViewable *viewable,
gimp_viewable_get_preview_size (viewable, 200, FALSE, TRUE, &width, &height); gimp_viewable_get_preview_size (viewable, 200, FALSE, TRUE, &width, &height);
pixbuf = gimp_viewable_get_pixbuf (viewable, 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_signal_connect (private->area, "offsets_changed",
G_CALLBACK (offsets_changed), G_CALLBACK (offsets_changed),