From 9ffdff9510bd9fc2ac4a8efe8f6b94bde794fda1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 10 Apr 2004 11:52:43 +0000 Subject: *** empty log message *** --- amount.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'amount.cc') diff --git a/amount.cc b/amount.cc index 6984d9bb..d3a77044 100644 --- a/amount.cc +++ b/amount.cc @@ -227,8 +227,10 @@ amount * gmp_amount::street(bool get_quotes) const { amount * amt = copy(); - int max = 10; + if (! amt->commdty()) + return amt; + int max = 10; while (--max >= 0) { if (! amt->commdty()->price && ! amt->commdty()->sought) { if (get_quotes) -- cgit v1.2.3