mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Reduce code duplication
This commit is contained in:
parent
f7781681bb
commit
21525713a3
@ -1473,11 +1473,9 @@ xaccSPrintAmount (char * bufp, gnc_numeric val, GNCPrintAmountInfo info)
|
||||
|
||||
if (info.commodity && info.use_symbol)
|
||||
{
|
||||
if (gnc_commodity_is_iso (info.commodity))
|
||||
currency_symbol = gnc_commodity_get_nice_symbol (info.commodity);
|
||||
else
|
||||
currency_symbol = gnc_commodity_get_nice_symbol (info.commodity);
|
||||
if (!gnc_commodity_is_iso (info.commodity))
|
||||
{
|
||||
currency_symbol = gnc_commodity_get_nice_symbol (info.commodity);
|
||||
cs_precedes = FALSE;
|
||||
sep_by_space = TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user