summaryrefslogtreecommitdiff
path: root/balance.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-09 16:30:00 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-09 16:30:00 -0400
commit2dc822291f3ecef34eb0ef2920c395b0e056fbda (patch)
tree23cfa31eecb31fe01eea410471f2dc53d4dac140 /balance.h
parent59c0692233812eeba568dac735d7b4d4576cf30a (diff)
downloadfork-ledger-2dc822291f3ecef34eb0ef2920c395b0e056fbda.tar.gz
fork-ledger-2dc822291f3ecef34eb0ef2920c395b0e056fbda.tar.bz2
fork-ledger-2dc822291f3ecef34eb0ef2920c395b0e056fbda.zip
fixed < bug
Diffstat (limited to 'balance.h')
-rw-r--r--balance.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/balance.h b/balance.h
index a41bcf6f..7fd3a770 100644
--- a/balance.h
+++ b/balance.h
@@ -217,6 +217,9 @@ class balance_t
if (! ((*i).second < bal.amount((*i).first)))
return false;
+ if (bal.amounts.size() == 0 && amounts.size() == 0)
+ return false;
+
return true;
}
bool operator<=(const balance_t& bal) const {
@@ -254,6 +257,9 @@ class balance_t
if (! ((*i).second > bal.amount((*i).first)))
return false;
+ if (bal.amounts.size() == 0 && amounts.size() == 0)
+ return false;
+
return true;
}
bool operator>=(const balance_t& bal) const {