mirror of https://github.com/GNOME/gimp.git
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:
parent
3a8ee221d0
commit
68ed1da1e9
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue