        * src/engine/gnc-pricedb.c (gnc_pricedb_convert_balance_latest_price):
        * src/engine/gnc-pricedb.c (gnc_pricedb_convert_balance_nearest_price):
          Fix some loop termination tests that were backwards
          
Index: src/engine/gnc-pricedb.c
===================================================================
--- src/engine/gnc-pricedb.c	(revision 13074)
+++ src/engine/gnc-pricedb.c	(working copy)
@@ -1762,7 +1762,7 @@
 
     list_helper = list_helper->next;
   } while((list_helper != NULL) &&
-          (!gnc_numeric_zero_p(currency_price_value)));
+          (gnc_numeric_zero_p(currency_price_value)));
 
   balance = gnc_numeric_mul (balance, currency_price_value,
                              gnc_commodity_get_fraction (new_currency),
@@ -1838,7 +1838,7 @@
 
     list_helper = list_helper->next;
   } while((list_helper != NULL) &&
-          (!gnc_numeric_zero_p(currency_price_value)));
+	  (gnc_numeric_zero_p(currency_price_value)));
 
   balance = gnc_numeric_mul (balance, currency_price_value,
                              gnc_commodity_get_fraction (new_currency),
