mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-22 17:06:36 -06:00
Merge Bob Fewell's 'bug798558' into master.
This commit is contained in:
commit
90e1e2d1c3
@ -1486,6 +1486,9 @@ gnc_print_amount_with_bidi_ltr_isolate (gnc_numeric val, GNCPrintAmountInfo info
|
||||
static const char ltr_pop_isolate[] = { 0xe2, 0x81, 0xa9 };
|
||||
size_t offset = info.use_symbol ? 3 : 0;
|
||||
|
||||
if (!gnc_commodity_is_currency (info.commodity))
|
||||
offset = 0;
|
||||
|
||||
memset (buf, 0, BUFLEN);
|
||||
if (!xaccSPrintAmount (buf + offset, val, info))
|
||||
{
|
||||
@ -1493,7 +1496,7 @@ gnc_print_amount_with_bidi_ltr_isolate (gnc_numeric val, GNCPrintAmountInfo info
|
||||
return buf;
|
||||
};
|
||||
|
||||
if (!info.use_symbol)
|
||||
if (offset == 0)
|
||||
return buf;
|
||||
|
||||
memcpy (buf, ltr_isolate, 3);
|
||||
|
Loading…
Reference in New Issue
Block a user