Bug #341362: Stock splits: Prevent fractional prices by forcing conversion to decimal. (I used the same fraction setting as the price editor.)

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17407 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Charles Day
2008-07-25 00:24:45 +00:00
parent 524dc04434
commit ce8a8a52e5
+1
View File
@@ -658,6 +658,7 @@ gnc_stock_split_druid_create (StockSplitInfo *info)
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");