Skip to content

Commit

Permalink
Bug 797935 - Strange formal register headers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Bob-IT committed Sep 11, 2020
1 parent 6997f00 commit d0309b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libgnucash/engine/Account.cpp
Expand Up @@ -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())
Expand All @@ -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())
Expand Down

0 comments on commit d0309b3

Please sign in to comment.