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
|
p <- priceamount
|
||||||
defcs <- getCommodityAndStyle
|
defcs <- getCommodityAndStyle
|
||||||
let (c,s) = case defcs of
|
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})
|
Nothing -> ("", amountstyle{asdecimalpoint=dec, asprecision=prec, asseparator=sep, asseparatorpositions=seppos})
|
||||||
return $ Amount c q p s
|
return $ Amount c q p s
|
||||||
<?> "no-symbol amount"
|
<?> "no-symbol amount"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user