[gimp/soc-2010-cage-2] gimpcagetool: add a warning if the coef buffer isn't initialised



commit 9677eeeffc263913a76481e2d714036c65964291
Author: Michael Muré <batolettre gmail com>
Date:   Tue Jul 27 16:59:33 2010 +0200

    gimpcagetool: add a warning if the coef buffer isn't initialised

 app/tools/gimpcagetool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index a75f51f..21d299f 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -582,7 +582,7 @@ gimp_cage_tool_process (GimpCageTool *ct,
   GimpProgress *progress = gimp_progress_start (GIMP_PROGRESS (display),
                                                 _("Blending"),
                                                 FALSE);
-
+  g_return_if_fail (ct->coef);
 
   if (GIMP_IS_LAYER (drawable))
   {



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