r17536 - gnucash/branches/2.2/src/gnome-utils - [r17463] Transfer dialog: Don't round quotes pulled from the price db.

Andreas Köhler andi5 at cvs.gnucash.org
Wed Sep 17 10:50:16 EDT 2008


Author: andi5
Date: 2008-09-17 10:50:15 -0400 (Wed, 17 Sep 2008)
New Revision: 17536
Trac: http://svn.gnucash.org/trac/changeset/17536

Modified:
   gnucash/branches/2.2/src/gnome-utils/dialog-transfer.c
Log:
[r17463] Transfer dialog: Don't round quotes pulled from the price db.

Committed by cedayiv.

Modified: gnucash/branches/2.2/src/gnome-utils/dialog-transfer.c
===================================================================
--- gnucash/branches/2.2/src/gnome-utils/dialog-transfer.c	2008-09-17 04:17:43 UTC (rev 17535)
+++ gnucash/branches/2.2/src/gnome-utils/dialog-transfer.c	2008-09-17 14:50:15 UTC (rev 17536)
@@ -1078,7 +1078,10 @@
 {
   GNCAmountEdit *gae;
 
-  if (!xferData) return;
+  g_return_if_fail(xferData);
+  ENTER("xferData=%p, exch_rate=%p (%s)", xferData, exch_rate,
+        exch_rate == NULL ? "NULL" : xaccPrintAmount(*exch_rate,
+                                       gnc_default_print_info(FALSE)));
 
   gtk_widget_set_sensitive (xferData->amount_edit, FALSE);
   gtk_widget_set_sensitive (xferData->date_entry, FALSE);
@@ -1091,6 +1094,8 @@
   gtk_widget_grab_focus (gnc_amount_edit_gtk_entry (gae));
 
   xferData->exch_rate = exch_rate;
+
+  LEAVE(" ");
 }
 
 /********************************************************************\
@@ -1677,7 +1682,6 @@
     edit = gnc_amount_edit_new();
     gnc_amount_edit_set_print_info(GNC_AMOUNT_EDIT(edit),
                                    gnc_default_print_info (FALSE));
-    gnc_amount_edit_set_fraction(GNC_AMOUNT_EDIT(edit), PRECISION);
     hbox = glade_xml_get_widget (xml, "price_hbox");
     gtk_box_pack_start(GTK_BOX(hbox), edit, TRUE, TRUE, 0);
     xferData->price_edit = edit;



More information about the gnucash-changes mailing list