[gimp] app: prevent segfault on startup when in swm and preset editor is active



commit 6b3c398f09b3f8df972d754204fe56ae42e90f2d
Author: Alexia Death <alexiadeath gmail com>
Date:   Sun Jun 5 15:12:23 2011 +0300

    app: prevent segfault on startup when in swm and preset editor is active

 app/widgets/gimptoolpreseteditor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimptoolpreseteditor.c b/app/widgets/gimptoolpreseteditor.c
index 1463cea..ec381c0 100644
--- a/app/widgets/gimptoolpreseteditor.c
+++ b/app/widgets/gimptoolpreseteditor.c
@@ -194,7 +194,7 @@ gimp_tool_preset_editor_set_data (GimpDataEditor *editor,
 
   GIMP_DATA_EDITOR_CLASS (parent_class)->set_data (editor, data);
 
-  if (editor->data)
+  if (editor->data && preset_editor->tool_preset_model)
     {
       GimpToolInfo *tool_info;
       const gchar  *stock_id;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]