r16361 - gnucash/trunk - Don't crash running the Account/Account Txn Reports from A/R (#460432)

Derek Atkins warlord at cvs.gnucash.org
Thu Jul 26 15:15:45 EDT 2007


Author: warlord
Date: 2007-07-26 15:15:43 -0400 (Thu, 26 Jul 2007)
New Revision: 16361
Trac: http://svn.gnucash.org/trac/changeset/16361

Modified:
   gnucash/trunk/
   gnucash/trunk/src/business/business-reports/owner-report.scm
   gnucash/trunk/src/report/standard-reports/standard-reports.scm
Log:
Don't crash running the Account/Account Txn Reports from A/R (#460432)
Two fixes here:

* make sure to call the correct report.  The C code calls into scheme
  with a #f, not '(), so check for both cases in standard-reports.scm.

* In the owner-report, don't return #f or '() but rather return -1
  when the user tries to run the Account Transaction Report on A/R or
  A/P when they don't have a transaction selected.  This will at least
  stop gnucash from crashing, but it will appear that gnucash isn't
  doing anything.  A step in the right direction but still not the
  best solution.





More information about the gnucash-patches mailing list