[gimp/soc-2011-seamless-clone2] Bug 693978 - GIMP crashes after changing text preset
- From: Clayton Walker <claytonw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2011-seamless-clone2] Bug 693978 - GIMP crashes after changing text preset
- Date: Wed, 8 May 2013 15:00:54 +0000 (UTC)
commit ff26444c80de30c1a3154cb50e6112b08150e5d0
Author: Michael Natterer <mitch gimp org>
Date: Sat Feb 16 20:38:15 2013 +0100
Bug 693978 - GIMP crashes after changing text preset
Applying a preset overwrites all the tool option's properties, also
temporarily its name. This name change gets auto-synced with the
option's text proxy object which also inherits from GimpObject and has
a name. Make sure we don't queue that name change for being applied to
the text layer's text object, because that code only handles
properties of GimpText itself.
app/tools/gimptexttool.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index 607fdc3..508b08c 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -1109,7 +1109,8 @@ gimp_text_tool_proxy_notify (GimpText *text,
if (! text_tool->text)
return;
- if ((pspec->flags & G_PARAM_READWRITE) == G_PARAM_READWRITE)
+ if ((pspec->flags & G_PARAM_READWRITE) == G_PARAM_READWRITE &&
+ pspec->owner_type == GIMP_TYPE_TEXT)
{
gimp_text_tool_block_drawing (text_tool);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]