[Gnucash-changes] r14317 - gnucash/trunk - Properly round values when setting the Base Value. Fixes #337505.

Derek Atkins warlord at cvs.gnucash.org
Sun Jun 4 01:15:09 EDT 2006


Author: warlord
Date: 2006-06-04 01:15:08 -0400 (Sun, 04 Jun 2006)
New Revision: 14317
Trac: http://svn.gnucash.org/trac/changeset/14317

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/business/dialog-tax-table/tax-tables.glade
   gnucash/trunk/src/engine/Split.c
Log:
Properly round values when setting the Base Value.  Fixes #337505.
(also fix a string, but the fixed string is already translated so
shouldn't be a problem).



Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-06-04 00:51:35 UTC (rev 14316)
+++ gnucash/trunk/ChangeLog	2006-06-04 05:15:08 UTC (rev 14317)
@@ -1,3 +1,12 @@
+2006-06-03  Derek Atkins  <derek at ihtfp.com>
+
+	* src/engine/Split.c:
+	  Properly round values when setting the Base Value.  Fixes #337505.
+	* src/business/dialog-tax-table/tax-tables.glade:
+	  fix a string.  It should be "Edit" not "gtk-edit".  This string
+	  is already translated, so shouldn't be an issue for the string
+	  freeze.
+
 2006-06-03  Joshua Sled  <jsled at asynchronous.org>
 
 	* src/gnome/ui/gnc-plugin-page-register-ui.xml:
@@ -21,6 +30,7 @@
 	register to change the notebook page, just like from the accounts
 	page. Also remove some dead code.
 
+>>>>>>> .r14316
 2006-06-03  Andreas Köhler  <andi5.py at gmx.net>
 
 	* src/gnome-utils/Makefile.am:

Modified: gnucash/trunk/src/business/dialog-tax-table/tax-tables.glade
===================================================================
--- gnucash/trunk/src/business/dialog-tax-table/tax-tables.glade	2006-06-04 00:51:35 UTC (rev 14316)
+++ gnucash/trunk/src/business/dialog-tax-table/tax-tables.glade	2006-06-04 05:15:08 UTC (rev 14317)
@@ -308,7 +308,7 @@
 			<widget class="GtkButton" id="edit_entry_button">
 			  <property name="visible">True</property>
 			  <property name="can_focus">True</property>
-			  <property name="label">gtk-edit</property>
+			  <property name="label">Edit</property>
 			  <property name="use_stock">True</property>
 			  <property name="relief">GTK_RELIEF_NORMAL</property>
 			  <property name="focus_on_click">True</property>

Modified: gnucash/trunk/src/engine/Split.c
===================================================================
--- gnucash/trunk/src/engine/Split.c	2006-06-04 00:51:35 UTC (rev 14316)
+++ gnucash/trunk/src/engine/Split.c	2006-06-04 05:15:08 UTC (rev 14317)
@@ -925,15 +925,15 @@
     if (gnc_commodity_equiv(commodity, base_currency)) {
       s->amount = gnc_numeric_convert(value,
                                       get_commodity_denom(s), 
-                                      GNC_HOW_RND_NEVER);
+                                      GNC_HOW_RND_ROUND);
     }
     s->value = gnc_numeric_convert(value, 
                                    get_currency_denom(s),
-                                   GNC_HOW_RND_NEVER);
+                                   GNC_HOW_RND_ROUND);
   }
   else if (gnc_commodity_equiv(commodity, base_currency)) {
     s->amount = gnc_numeric_convert(value, get_commodity_denom(s),
-                                    GNC_HOW_RND_NEVER);
+                                    GNC_HOW_RND_ROUND);
   }
   else {
     PERR ("inappropriate base currency %s "



More information about the gnucash-changes mailing list