AUDIT: r17879 - gnucash/trunk/src/gnome-utils - Fix use of "=" in if statement where "==" was intended

Christian Stimming cstim at cvs.gnucash.org
Sat Feb 7 11:49:07 EST 2009


Author: cstim
Date: 2009-02-07 11:49:07 -0500 (Sat, 07 Feb 2009)
New Revision: 17879
Trac: http://svn.gnucash.org/trac/changeset/17879

Modified:
   gnucash/trunk/src/gnome-utils/dialog-account.c
Log:
Fix use of "=" in if statement where "==" was intended

This fixes the default currency and description in the new account dialog.

Patch by Alan Jenkins.

Signed-off-by: Christian Stimming <stimming at tuhh.de>
BP

Modified: gnucash/trunk/src/gnome-utils/dialog-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-account.c	2009-02-06 20:11:43 UTC (rev 17878)
+++ gnucash/trunk/src/gnome-utils/dialog-account.c	2009-02-07 16:49:07 UTC (rev 17879)
@@ -1456,7 +1456,7 @@
 
   if (default_commodity != NULL) {
     commodity = default_commodity;
-    if ((aw->type = ACCT_TYPE_STOCK) || (aw->type = ACCT_TYPE_MUTUAL)) 
+    if ((aw->type == ACCT_TYPE_STOCK) || (aw->type == ACCT_TYPE_MUTUAL)) 
        {
         gtk_entry_set_text(GTK_ENTRY(aw->name_entry), 
                             (gpointer) gnc_commodity_get_mnemonic(commodity));



More information about the gnucash-changes mailing list