[gimp/metadata-browser] app: silence a harmless Gimp-Tools-CRITICAL



commit 7b1d47c9c216e3a490cd7a2db92412e810269ec9
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Fri Nov 18 18:36:29 2011 +0100

    app: silence a harmless Gimp-Tools-CRITICAL
    
    double-clicking on the preview of a newly created path
    in paths dockable (to activate the vector tool) used to
    show a
    
    Gimp-Tools-CRITICAL **: gimp_draw_tool_add_path: ...
                            assertion `desc != NULL' failed

 app/tools/gimpvectortool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpvectortool.c b/app/tools/gimpvectortool.c
index 99174e3..97a3129 100644
--- a/app/tools/gimpvectortool.c
+++ b/app/tools/gimpvectortool.c
@@ -1411,7 +1411,7 @@ gimp_vector_tool_draw (GimpDrawTool *draw_tool)
 
   vectors = vector_tool->vectors;
 
-  if (!vectors)
+  if (! vectors || ! gimp_vectors_get_bezier (vectors))
     return;
 
   /* the stroke itself */



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