diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-06 22:20:56 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-06 22:20:56 -0400 |
commit | 8c3369b8ab08e9213ae8fc0ed4c86abdd437ee5d (patch) | |
tree | 19eb1e13c27edb98055e192abad1cf65dd0fc766 /src | |
parent | 182d5df307626c244efe581f3d8e58578babeb99 (diff) | |
download | fork-ledger-8c3369b8ab08e9213ae8fc0ed4c86abdd437ee5d.tar.gz fork-ledger-8c3369b8ab08e9213ae8fc0ed4c86abdd437ee5d.tar.bz2 fork-ledger-8c3369b8ab08e9213ae8fc0ed4c86abdd437ee5d.zip |
Fixed the use of --effective when an entry has no especial effective date.
Diffstat (limited to 'src')
-rw-r--r-- | src/report.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/report.cc b/src/report.cc index 348f75bd..38732bf8 100644 --- a/src/report.cc +++ b/src/report.cc @@ -209,6 +209,8 @@ namespace { if (report.HANDLED(effective)) { if (optional<date_t> date = item.effective_date()) when = *date; + else + when = item.date(); } else { when = item.date(); } |