mirror of https://github.com/GNOME/gimp.git
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:
parent
72db6592af
commit
cf49cb3c5c
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue