adg: add DECIMALS property to AdgDimStyle
commit1fc6e419337cfba7a0406cdf54a75e0241ce0edd
authorNicola Fontana <ntd@entidi.it>
Mon, 19 Dec 2016 21:26:48 +0000 (19 22:26 +0100)
committerNicola Fontana <ntd@entidi.it>
Mon, 19 Dec 2016 21:26:48 +0000 (19 22:26 +0100)
tree89595d127b4da0c1d0de49da8cceb5b7568b19b7
parentdcc19cc5c972d746d74593db58acf9a324546fd8
adg: add DECIMALS property to AdgDimStyle

Allow to explicitely specify the number of decimals to consider when
evaluating a generic dimension value. The number-format property is not
enough because you can't handle a quite common case, e.g. a specific
number of decimals *without* trailing 0.
src/adg/adg-dim-style-private.h
src/adg/adg-dim-style.c
src/adg/adg-dim-style.h
src/adg/tests/test-dim-style.c