mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug798558 - Irregular line spacing in Account Tree View
When securities are in the list, the rows look twice as high as though there is a linefeed at the end. This is partly due to commit for bug 797501 which worked at the time but a change in pango 50.4 to do with wrapping has highlighted this bug. To fix this only wrap currencies with ltr bidi isolate characters in gnc_print_amount_with_bidi_ltr_isolate
This commit is contained in:
parent
00c560d8f5
commit
a576dd87a4
@ -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