From 2d84043df241ebe7a5a486071622ea7299120f42 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 27 Feb 2008 08:20:54 +0000 Subject: [PATCH] added a sanity check which might help to catch the problem reported in bug 2008-02-27 Sven Neumann * app/gui/gui-vtable.c (gui_display_create): added a sanity check which might help to catch the problem reported in bug #518905. svn path=/trunk/; revision=24989 --- ChangeLog | 5 +++++ app/gui/gui-vtable.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index dc464e6381..8eb258ee8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-27 Sven Neumann + + * app/gui/gui-vtable.c (gui_display_create): added a sanity check + which might help to catch the problem reported in bug #518905. + 2008-02-26 Sven Neumann * app/Makefile.am (gimp_2_5_LDFLAGS): don't assume that global diff --git a/app/gui/gui-vtable.c b/app/gui/gui-vtable.c index 8129ca6440..5378fe8260 100644 --- a/app/gui/gui-vtable.c +++ b/app/gui/gui-vtable.c @@ -285,6 +285,8 @@ gui_display_create (GimpImage *image, image_managers = gimp_ui_managers_from_name (""); + g_return_val_if_fail (image_managers != NULL, NULL); + display = gimp_display_new (image, unit, scale, global_menu_factory, image_managers->data);