gnucash maint: Fix reversed parameters in call to xaccAccountTypesCompatible.

John Ralls jralls at code.gnucash.org
Sat May 1 12:54:11 EDT 2021


Updated	 via  https://github.com/Gnucash/gnucash/commit/ac1abcb8 (commit)
	from  https://github.com/Gnucash/gnucash/commit/ca6fcf8a (commit)



commit ac1abcb8c356367dcac581bdb0b8d3a51fa48adc
Author: John Ralls <jralls at ceridwen.us>
Date:   Sat May 1 09:53:56 2021 -0700

    Fix reversed parameters in call to xaccAccountTypesCompatible.
    
    Missed in 2258e7a4.

diff --git a/gnucash/gnome-utils/dialog-account.c b/gnucash/gnome-utils/dialog-account.c
index 508e191db..d90bc06df 100644
--- a/gnucash/gnome-utils/dialog-account.c
+++ b/gnucash/gnome-utils/dialog-account.c
@@ -879,7 +879,7 @@ gnc_common_ok (AccountWindow *aw)
     }
 
     /* check whether the types of child and parent are compatible */
-    if (!xaccAccountTypesCompatible (aw->type, xaccAccountGetType (parent)))
+    if (!xaccAccountTypesCompatible (xaccAccountGetType (parent), aw->type))
     {
         const char *message = _("The selected account type is incompatible with "
                                 "the one of the selected parent.");
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 52d0e0e57..d2f2ba6f5 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -487,6 +487,7 @@ gnucash/report/reports/standard/dashboard.scm
 gnucash/report/reports/standard/equity-statement.scm
 gnucash/report/reports/standard/general-journal.scm
 gnucash/report/reports/standard/general-ledger.scm
+gnucash/report/reports/standard/ifrs-cost-basis.scm
 gnucash/report/reports/standard/income-gst-statement.scm
 gnucash/report/reports/standard/income-statement.scm
 gnucash/report/reports/standard/invoice.scm



Summary of changes:
 gnucash/gnome-utils/dialog-account.c | 2 +-
 po/POTFILES.in                       | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)



More information about the gnucash-changes mailing list