]> granicus.if.org Git - graphviz/commit
Fix: shape coordinates close to 0 now absolutely 0
authorErwin Janssen <erwinjanssen@outlook.com>
Thu, 3 Nov 2016 00:18:20 +0000 (01:18 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 3 Nov 2016 00:22:34 +0000 (01:22 +0100)
commita55127dbe7d5557eeb019e1ed50fae16f84c2547
treec5ed40d36bb11724763ae5d44ccf924345e937c4
parentddd5a630a31d949179be36e9c9ad406234c4c960
Fix: shape coordinates close to 0 now absolutely 0

Check wether the values are close to zero by checking if it lies between
-0.00001 and 0.00001. If this is the case, set the value to 0. This prevents
coordinates like 7.10543e-15, that are differ by platform.
lib/common/shapes.c