[gimp] app: Return NULL if assertion fails
- From: Mukund Sivaraman <muks src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gimp] app: Return NULL if assertion fails
 
- Date: Fri,  2 May 2014 18:17:25 +0000 (UTC)
 
commit a2f6d60a422943cebe8afe9a4601452ee828309c
Author: Mukund Sivaraman <muks banu com>
Date:   Fri May 2 23:32:53 2014 +0530
    app: Return NULL if assertion fails
 app/tools/gimpmeasuretool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpmeasuretool.c b/app/tools/gimpmeasuretool.c
index 11c304e..35a3eee 100644
--- a/app/tools/gimpmeasuretool.c
+++ b/app/tools/gimpmeasuretool.c
@@ -1046,7 +1046,7 @@ gimp_measure_tool_dialog_new (GimpMeasureTool *measure)
   GtkWidget        *table;
   GtkWidget        *label;
 
-  g_return_if_fail (tool->display != NULL);
+  g_return_val_if_fail (tool->display != NULL, NULL);
 
   shell = gimp_display_get_shell (tool->display);
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]