Skip to content

Commit

Permalink
Remove the preference for storing prices relative to the base currency.
Browse files Browse the repository at this point in the history
It interferes with the preference for storing the price in the direction
in which the price is >1 for preserving sigfigs.
  • Loading branch information
jralls committed Sep 15, 2015
1 parent 4259255 commit cfa5aa1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/gnome-utils/dialog-transfer.c
Expand Up @@ -1602,12 +1602,6 @@ create_price(XferDialog *xferData, Timespec ts)
return;

value = gnc_amount_edit_get_amount(GNC_AMOUNT_EDIT(xferData->price_edit));
/* Try to be consistent about how quotes are installed. */
if (from == gnc_default_currency() ||
((to != gnc_default_currency()) &&
(strcmp (gnc_commodity_get_mnemonic(from),
gnc_commodity_get_mnemonic(to)) < 0)))
swap_amount (&from, &to, &value, &from_amt, &to_amt);

/* Normally we want to store currency rates such that the rate > 1 and commodity
* prices in terms of a currency regardless of value. However, if we already
Expand Down

0 comments on commit cfa5aa1

Please sign in to comment.