[pango/more-test-coverage2: 6/15] layout: Correct a g_return_val_if_fail
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/more-test-coverage2: 6/15] layout: Correct a g_return_val_if_fail
- Date: Tue, 6 Jul 2021 22:51:59 +0000 (UTC)
commit 87b86f128f1eca3008fb4d546668abb7b12c225d
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jul 5 22:42:33 2021 -0400
layout: Correct a g_return_val_if_fail
The convention is to return the initial value if
the 'this' check fails. Correct this for auto_dir.
pango/pango-layout.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index b622f490..cd73e27a 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -868,7 +868,7 @@ pango_layout_set_auto_dir (PangoLayout *layout,
gboolean
pango_layout_get_auto_dir (PangoLayout *layout)
{
- g_return_val_if_fail (PANGO_IS_LAYOUT (layout), FALSE);
+ g_return_val_if_fail (PANGO_IS_LAYOUT (layout), TRUE);
return layout->auto_dir;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]