AUDIT: r17407 - gnucash/trunk/src/gnome - Bug #341362: Stock splits: Prevent fractional prices by forcing conversion to decimal. (I used the same fraction setting as the price editor.)

Charles Day cedayiv at cvs.gnucash.org
Thu Jul 24 20:24:45 EDT 2008


Author: cedayiv
Date: 2008-07-24 20:24:45 -0400 (Thu, 24 Jul 2008)
New Revision: 17407
Trac: http://svn.gnucash.org/trac/changeset/17407

Modified:
   gnucash/trunk/src/gnome/druid-stock-split.c
Log:
Bug #341362: Stock splits: Prevent fractional prices by forcing conversion to decimal. (I used the same fraction setting as the price editor.)
BP


Modified: gnucash/trunk/src/gnome/druid-stock-split.c
===================================================================
--- gnucash/trunk/src/gnome/druid-stock-split.c	2008-07-24 23:50:08 UTC (rev 17406)
+++ gnucash/trunk/src/gnome/druid-stock-split.c	2008-07-25 00:24:45 UTC (rev 17407)
@@ -658,6 +658,7 @@
     gnc_amount_edit_set_print_info (GNC_AMOUNT_EDIT (amount),
                                     gnc_default_price_print_info ());
     gnc_amount_edit_set_evaluate_on_enter (GNC_AMOUNT_EDIT (amount), TRUE);
+    gnc_amount_edit_set_fraction (GNC_AMOUNT_EDIT (amount), 1000000);
     gtk_box_pack_start (GTK_BOX (box), amount, TRUE, TRUE, 0);
     info->price_edit = amount;
     label = glade_xml_get_widget (xml, "price_label");



More information about the gnucash-changes mailing list