[gimp/gimp-2-8] Bug 693978 - GIMP crashes after changing text preset
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 693978 - GIMP crashes after changing text preset
- Date: Sat, 16 Feb 2013 19:47:36 +0000 (UTC)
commit c110220793c76bdb56d5827421d1211b285432c0
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.
(cherry picked from commit 931ea102f8de78b24a2a3a6f1edf82e8d2898f01)
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 0c678ca..9160396 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -1110,7 +1110,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]