From a2f6d60a422943cebe8afe9a4601452ee828309c Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Fri, 2 May 2014 23:32:53 +0530 Subject: [PATCH] app: Return NULL if assertion fails --- app/tools/gimpmeasuretool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tools/gimpmeasuretool.c b/app/tools/gimpmeasuretool.c index 11c304e299..35a3eeedb9 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);