]> granicus.if.org Git - graphviz/commit
agwrite: fix: ignore out of range 'linelength'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 25 Feb 2022 16:09:36 +0000 (08:09 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 27 Feb 2022 21:12:12 +0000 (13:12 -0800)
commit29e9665d0de1d138ca213c0cf2d6dbd86987046b
treee658ada95c01042a951cdae3419b0fe51d419bdc
parentedaab9b4522e9dd8e2e4552cc9e96fca20937e0c
agwrite: fix: ignore out of range 'linelength'

This code was accepting large negative numbers and then converting them to
positive numbers that were applied as the line length limit. This seems clearly
unintended. This rephrasing now ignores any out of range value set for
`linelength`.
lib/cgraph/write.c