]> granicus.if.org Git - graphviz/commit
Prevent values like -0 in xdot output
authorErwin Janssen <erwinjanssen@outlook.com>
Mon, 5 Dec 2016 01:10:22 +0000 (02:10 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Mon, 5 Dec 2016 01:55:37 +0000 (02:55 +0100)
commit78f9475396f1271f8c9a699c4461c0bdcbf942bb
tree5ccc254ec1f541be8d9c76b382f7105067e52c6e
parent03c2f00d51b0f227697457aa0c54d243dcbafaa9
Prevent values like -0 in xdot output

Two graphs in the shapes regression test reference files (invhouse and
invtrapezium) contained a -0 coordinate. The Linux build produced the same
results, but the Windows build didn't, causing the regression tests to
fail.
To prevent values like -0 in the xdot output, a comparison is added just
before formatting the number.
plugin/core/gvrender_core_dot.c
tests/regression_tests/shapes/reference/invhouse.xdot
tests/regression_tests/shapes/reference/invtrapezium.xdot