Revert "Fix price-reading crash if the price needs to be inverted."

This reverts commit 027080a830,
and is step 2 in reverting the single-price changes.
This commit is contained in:
John Ralls 2015-10-23 11:44:57 -07:00
parent 9fc0c4667c
commit 39d43a31fa

View File

@ -419,12 +419,12 @@
(set! saved-price (gnc-pricedb-lookup-day pricedb
commodity currency
gnc-time))
(if (null? saved-price) ;;See if there's a reversed price.
(if (null? saved-price)
(begin
(set! saved-price (gnc-pricedb-lookup-day pricedb currency
commodity gnc-time))
(if (not (null? saved-price))
(set! price (gnc-numeric-invert price)))))
(set! price (gnc-numeric-invert(price))))))
(if (not (null? saved-price))
(if (> (gnc-price-get-source saved-price) PRICE-SOURCE-FQ)
(begin