r19913 - gnucash/trunk/src/engine - Patch by Matthijs Kooijman.

John Ralls jralls at code.gnucash.org
Tue Dec 7 19:33:29 EST 2010


Author: jralls
Date: 2010-12-07 19:33:29 -0500 (Tue, 07 Dec 2010)
New Revision: 19913
Trac: http://svn.gnucash.org/trac/changeset/19913

Modified:
   gnucash/trunk/src/engine/business-core.i
Log:
Patch by Matthijs Kooijman.

In r19863, some qofquery bindings were added. For those to compile,
business-core.i now includes qofquery.h. However, this causes the
bindings for qofquery.h to be generated twice: Once through engine.i and
once through business-core.i. The latter generated broken versions of
the bindings, breaking (at least) the receivable aging report.

This commit changes the %include to an %import, so the new bindings
still compile but the query bindings don't get generated twice.



Modified: gnucash/trunk/src/engine/business-core.i
===================================================================
--- gnucash/trunk/src/engine/business-core.i	2010-12-07 23:49:19 UTC (rev 19912)
+++ gnucash/trunk/src/engine/business-core.i	2010-12-08 00:33:29 UTC (rev 19913)
@@ -128,7 +128,9 @@
 %include <gncTaxTable.h>
 %include <gncVendor.h>
 %include <gncBusGuile.h>
-%include <libqof/qof/qofquery.h>
+/* Import query bindings for the below invoice query functions (but
+ * don't generate bindings for them). */
+%import <libqof/qof/qofquery.h>
 
 #define URL_TYPE_CUSTOMER GNC_ID_CUSTOMER
 #define URL_TYPE_VENDOR GNC_ID_VENDOR



More information about the gnucash-changes mailing list