Commit 726b0699 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

Merged from HEAD branch:

2005-01-22  Sven Neumann  <sven@gimp.org>

	Merged from HEAD branch:

	* libgimpbase/gimputils.c (gimp_enum_value_get_desc)
	(gimp_enum_value_get_help): don't crash if gimp_enum_get_desc()
	returns NULL.
parent 9d770f70
2005-01-22 Sven Neumann <sven@gimp.org>
Merged from HEAD branch:
* libgimpbase/gimputils.c (gimp_enum_value_get_desc)
(gimp_enum_value_get_help): don't crash if gimp_enum_get_desc()
returns NULL.
2005-01-20 Sven Neumann <sven@gimp.org>
Merged from HEAD branch:
......
......@@ -454,7 +454,7 @@ gimp_enum_value_get_desc (GEnumClass *enum_class,
enum_desc = gimp_enum_get_desc (enum_class, enum_value->value);
if (enum_desc->value_desc)
if (enum_desc && enum_desc->value_desc)
return dgettext (gimp_type_get_translation_domain (type),
enum_desc->value_desc);
......@@ -481,7 +481,7 @@ gimp_enum_value_get_help (GEnumClass *enum_class,
enum_desc = gimp_enum_get_desc (enum_class, enum_value->value);
if (enum_desc->value_help)
if (enum_desc && enum_desc->value_help)
return dgettext (gimp_type_get_translation_domain (type),
enum_desc->value_help);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment