[gimp] app: Ensure the graph for fs filters is always constructed when needed.
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Ensure the graph for fs filters is always constructed when needed.
- Date: Sat, 10 Aug 2013 16:37:29 +0000 (UTC)
commit e7b749d55dd3a07e45b2a3054a6a418feee37731
Author: Michael Henning <drawoc darkrefraction com>
Date: Sat Aug 10 12:34:42 2013 -0400
app: Ensure the graph for fs filters is always constructed when needed.
app/core/gimpdrawable.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpdrawable.c b/app/core/gimpdrawable.c
index 11bf697..ef55cc3 100644
--- a/app/core/gimpdrawable.c
+++ b/app/core/gimpdrawable.c
@@ -1762,5 +1762,12 @@ gimp_drawable_get_floating_sel_filter (GimpDrawable *drawable)
g_return_val_if_fail (GIMP_IS_DRAWABLE (drawable), NULL);
g_return_val_if_fail (gimp_drawable_get_floating_sel (drawable) != NULL, NULL);
+ /*
+ * Ensure that the graph is construced before the filter is used.
+ * Otherwise, we rely on the projection to cause the graph to be constructed,
+ * which fails for images that aren't displayed.
+ */
+ gimp_filter_get_node (GIMP_FILTER (drawable));
+
return drawable->private->fs_filter;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]