[gimp] app: fix precondition return values in gimp_tool_widget_get_popup()
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix precondition return values in gimp_tool_widget_get_popup()
- Date: Tue, 26 May 2020 08:11:25 +0000 (UTC)
commit 4b1c8f9ec7e4da6118da26f162f0cf91d968718f
Author: Ell <ell_se yahoo com>
Date: Tue May 26 11:05:58 2020 +0300
app: fix precondition return values in gimp_tool_widget_get_popup()
app/display/gimptoolwidget.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimptoolwidget.c b/app/display/gimptoolwidget.c
index dba2a91ac6..22db01215e 100644
--- a/app/display/gimptoolwidget.c
+++ b/app/display/gimptoolwidget.c
@@ -1119,8 +1119,8 @@ gimp_tool_widget_get_popup (GimpToolWidget *widget,
GdkModifierType state,
const gchar **ui_path)
{
- g_return_val_if_fail (GIMP_IS_TOOL_WIDGET (widget), FALSE);
- g_return_val_if_fail (coords != NULL, FALSE);
+ g_return_val_if_fail (GIMP_IS_TOOL_WIDGET (widget), NULL);
+ g_return_val_if_fail (coords != NULL, NULL);
if (widget->private->visible &&
GIMP_TOOL_WIDGET_GET_CLASS (widget)->get_popup)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]