r18352 - gnucash/trunk/src/report/standard-reports - Bug #593906: Fix crash at creating account report

Christian Stimming cstim at code.gnucash.org
Mon Sep 28 13:32:04 EDT 2009


Author: cstim
Date: 2009-09-28 13:32:04 -0400 (Mon, 28 Sep 2009)
New Revision: 18352
Trac: http://svn.gnucash.org/trac/changeset/18352

Modified:
   gnucash/trunk/src/report/standard-reports/standard-reports.scm
Log:
Bug #593906: Fix crash at creating account report

Patch by Mike Alexander: I tracked it down to the set of changes made in
r18253 to automatically load all the reports in the standard-reports directory.
This changed standard-reports.scm to use resolve-module instead of use-modules
to load reports.  One difference between these two is that resolve-module
doesn't make the interface for the loaded module available to the module
containing the call to resolve-module.  This causes a crash when
gnc:register-report-create in standard-reports.scm tries to call
gnc:register-report-create-internal which is located in register.scm (one of
the modules loaded using resolve-module).  I fixed it by explicitly defining
that interface using the "@" guile function after the modules are loaded.  You
could also probably just add back a call to use-module for that module, but
this seems to work and makes it explicit what interface is needed.

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



More information about the gnucash-patches mailing list