amount_t::is_zero() wasn't checking for '-'.
This commit is contained in:
parent
ec6a3e8081
commit
dd9775508a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue