mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Ensure numerator is positive before checking if the value is < 1.
This commit is contained in:
parent
1ca56c9d0d
commit
a406903705
@ -1631,6 +1631,7 @@ new_price(XferDialog *xferData, Timespec ts)
|
||||
/* We want to store currency rates such that the rate > 1 and commodity
|
||||
* prices in terms of a currency regardless of value.
|
||||
*/
|
||||
value = gnc_numeric_abs(value);
|
||||
if (gnc_commodity_is_currency(from) && gnc_commodity_is_currency(to))
|
||||
{
|
||||
if (value.num < value.denom)
|
||||
|
Loading…
Reference in New Issue
Block a user