[gimp] text: Fix xcf load issue caused by MR !751
- From: Alx Sa <sawyeralex src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] text: Fix xcf load issue caused by MR !751
- Date: Thu, 13 Oct 2022 00:16:46 +0000 (UTC)
commit 0aa63806e65be980046e7630c908ff94128c50e2
Author: Alx Sa <cmyk student gmail com>
Date: Thu Oct 13 00:16:44 2022 +0000
text: Fix xcf load issue caused by MR !751
Loading an .xcf with a patterned outline caused GIMP to crash.
This is because PROP_GIMP was loaded at the end, so it was null when
text->gimp->pattern_factory was called. Moving PROP_GIMP to the
top of the property enum list ensures it's loaded first,
which resolves the issue.
app/text/gimptext.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/app/text/gimptext.c b/app/text/gimptext.c
index b3ce6acc71..0e3fb9e348 100644
--- a/app/text/gimptext.c
+++ b/app/text/gimptext.c
@@ -49,6 +49,7 @@
enum
{
PROP_0,
+ PROP_GIMP,
PROP_TEXT,
PROP_MARKUP,
PROP_FONT,
@@ -86,9 +87,7 @@ enum
PROP_OUTLINE_DASH_OFFSET,
PROP_OUTLINE_DASH_INFO,
/* for backward compatibility */
- PROP_HINTING,
-
- PROP_GIMP
+ PROP_HINTING
};
enum
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]