don't let default commodity limit the max precision (fixes #169)
This commit is contained in:
parent
882a9dbf1c
commit
da0ce23144
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user