avoid the crash reported in bug #470304.

2007-09-23  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptooloptionseditor.c
	(gimp_tool_options_editor_get_title): avoid the crash reported 
in
	bug #470304.


svn path=/trunk/; revision=23632
This commit is contained in:
Sven Neumann 2007-09-23 19:09:37 +00:00 committed by Sven Neumann
parent f1ce484ab2
commit 84409a2a7c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-09-23 Sven Neumann <sven@gimp.org>
* app/widgets/gimptooloptionseditor.c
(gimp_tool_options_editor_get_title): avoid the crash reported in
bug #470304.
2007-09-23 Sven Neumann <sven@gimp.org>
* plug-ins/common/lcms.c: marked blurbs as translatable.

View File

@ -246,7 +246,7 @@ gimp_tool_options_editor_get_title (GimpDocked *docked)
tool_info = gimp_context_get_tool (context);
return g_strdup (tool_info->blurb);
return tool_info ? g_strdup (tool_info->blurb) : NULL;
}