From a4069037055d92755be154fc72da53ea0dc79fc8 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Fri, 11 Mar 2016 15:43:30 -0800 Subject: [PATCH] Ensure numerator is positive before checking if the value is < 1. --- src/gnome-utils/dialog-transfer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gnome-utils/dialog-transfer.c b/src/gnome-utils/dialog-transfer.c index 7d84370273..eefc5d1a3e 100644 --- a/src/gnome-utils/dialog-transfer.c +++ b/src/gnome-utils/dialog-transfer.c @@ -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)