Fix bug in qif account name guessing. Should fix reported bug on

FreeBSD.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4661 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Bill Gribble
2001-06-13 05:23:11 +00:00
parent 52d421ec36
commit 5abde68b00
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2001-06-13 Bill Gribble <grib@billgribble.com>
* src/sc/qif-import/qif-guess-map.scm: fix bug in
account name guessing
2001-06-12 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-price-editor.c: fix bug

View File

@@ -329,8 +329,9 @@
;; the QIF name is a substring of the gnc full name.
;; this happens if you have the same tree but a different
;; top-level structure. (i.e. expenses:tax vs. QIF tax)
(string-match (string-downcase qif-acct-name)
(string-downcase (cadr gnc-acct)))))
(and (> (string-length qif-acct-name) 0)
(string-match (string-downcase qif-acct-name)
(string-downcase (cadr gnc-acct))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;