don't let default commodity limit the max precision (fixes #169)

This commit is contained in:
Simon Michael 2014-03-26 17:25:59 -07:00
parent 882a9dbf1c
commit da0ce23144

View File

@ -677,7 +677,7 @@ nosymbolamount = do
p <- priceamount
defcs <- getCommodityAndStyle
let (c,s) = case defcs of
Just (c',s') -> (c',s')
Just (defc,defs) -> (defc, defs{asprecision=max (asprecision defs) prec})
Nothing -> ("", amountstyle{asdecimalpoint=dec, asprecision=prec, asseparator=sep, asseparatorpositions=seppos})
return $ Amount c q p s
<?> "no-symbol amount"