[gimp] Bug 693978 - GIMP crashes after changing text preset
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 693978 - GIMP crashes after changing text preset
- Date: Sat, 16 Feb 2013 19:43:22 +0000 (UTC)
commit 931ea102f8de78b24a2a3a6f1edf82e8d2898f01
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]