summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/amount.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amount.cc b/src/amount.cc
index 36539232..f0266b36 100644
--- a/src/amount.cc
+++ b/src/amount.cc
@@ -641,7 +641,7 @@ bool amount_t::is_zero() const
stream_out_mpq(out, MP(quantity), commodity().precision());
for (const char * p = out.str().c_str(); *p; p++)
- if (*p != '0' && *p != '.')
+ if (*p != '0' && *p != '.' && *p != '-')
return false;
return true;
}