we have a bug somewhere; this function shouldn't be called for a view w/o

2003-10-17  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainerview.c (gimp_container_view_get_preview):
	we have a bug somewhere; this function shouldn't be called for a
	view w/o a container. Added a g_return_if_fail() to avoid a crash.
This commit is contained in:
Sven Neumann 2003-10-17 17:54:13 +00:00 committed by Sven Neumann
parent 3a8ee221d0
commit 68ed1da1e9
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2003-10-17 Sven Neumann <sven@gimp.org>
* app/widgets/gimpcontainerview.c (gimp_container_view_get_preview):
we have a bad bug somewhere; this function shouldn't be called for
a view w/o a container. Added a g_return_if_fail() to avoid a crash.
2003-10-17 Sven Neumann <sven@gimp.org>
* plug-ins/gfig/gfig.c: reverted most of Maurits changes (not the

View File

@ -737,6 +737,8 @@ gimp_container_view_get_preview (GimpDocked *docked,
gint border_width = 1;
const gchar *prop_name;
g_return_val_if_fail (view->container != NULL, NULL);
gtk_icon_size_lookup (size, &width, &height);
prop_name = gimp_context_type_to_prop_name (view->container->children_type);