r17905 - gnucash/branches/2.2/src/gnome-utils - [17879] Fix use of "=" in if statement where "==" was intended

Andreas Köhler andi5 at cvs.gnucash.org
Sat Feb 14 16:11:26 EST 2009


Author: andi5
Date: 2009-02-14 16:11:26 -0500 (Sat, 14 Feb 2009)
New Revision: 17905
Trac: http://svn.gnucash.org/trac/changeset/17905

Modified:
   gnucash/branches/2.2/src/gnome-utils/dialog-account.c
Log:
[17879] 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>

Modified: gnucash/branches/2.2/src/gnome-utils/dialog-account.c
===================================================================
--- gnucash/branches/2.2/src/gnome-utils/dialog-account.c	2009-02-14 21:11:16 UTC (rev 17904)
+++ gnucash/branches/2.2/src/gnome-utils/dialog-account.c	2009-02-14 21:11:26 UTC (rev 17905)
@@ -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