Bug 797935 - Strange formal register headers

The headers were made up from two parts, 'Tot' which was translated and
'Debit/Credit' which was not. Traced to some missing brackets around
the returned dflt_acct_debit_str and dflt_acct_credit_str.
This commit is contained in:
Robert Fewell 2020-09-11 15:23:27 +01:00
parent 6997f0057e
commit d0309b39d9

View File

@ -4075,7 +4075,7 @@ xaccAccountSetTaxUSCopyNumber (Account *acc, gint64 copy_number)
const char *gnc_account_get_debit_string (GNCAccountType acct_type)
{
if (gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, GNC_PREF_ACCOUNTING_LABELS))
return dflt_acct_debit_str;
return _(dflt_acct_debit_str);
auto result = gnc_acct_debit_strs.find(acct_type);
if (result != gnc_acct_debit_strs.end())
@ -4087,7 +4087,7 @@ const char *gnc_account_get_debit_string (GNCAccountType acct_type)
const char *gnc_account_get_credit_string (GNCAccountType acct_type)
{
if (gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, GNC_PREF_ACCOUNTING_LABELS))
return dflt_acct_credit_str;
return _(dflt_acct_credit_str);
auto result = gnc_acct_credit_strs.find(acct_type);
if (result != gnc_acct_credit_strs.end())