fall back to the paintbrush if we can't get the paint method from the

2005-12-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpstrokedesc.c (gimp_stroke_desc_new): fall back to
	the paintbrush if we can't get the paint method from the active
	tool (because there is no active tool). Fixes bug #323778.
This commit is contained in:
Michael Natterer 2005-12-11 15:31:11 +00:00 committed by Michael Natterer
parent 72db6592af
commit cf49cb3c5c
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2005-12-11 Michael Natterer <mitch@gimp.org>
* app/core/gimpstrokedesc.c (gimp_stroke_desc_new): fall back to
the paintbrush if we can't get the paint method from the active
tool (because there is no active tool). Fixes bug #323778.
2005-12-10 Michael Natterer <mitch@gimp.org>
* app/config/*.c

View File

@ -31,6 +31,7 @@
#include "config/gimpcoreconfig.h"
#include "core/gimp.h"
#include "core/gimpcontainer.h"
#include "core/gimpcontext.h"
#include "core/gimptoolinfo.h"
@ -250,6 +251,11 @@ gimp_stroke_desc_new (Gimp *gimp,
if (tool_info)
paint_info = tool_info->paint_info;
if (! paint_info)
paint_info = (GimpPaintInfo *)
gimp_container_get_child_by_name (gimp->paint_info_list,
"GimpPaintbrush");
}
desc = g_object_new (GIMP_TYPE_STROKE_DESC,