summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-06 22:20:56 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-06 22:20:56 -0400
commit8c3369b8ab08e9213ae8fc0ed4c86abdd437ee5d (patch)
tree19eb1e13c27edb98055e192abad1cf65dd0fc766 /src
parent182d5df307626c244efe581f3d8e58578babeb99 (diff)
downloadfork-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.cc2
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();
}