]> granicus.if.org Git - graphviz/commitdiff
fix typo in eqEndSeg
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 19 Jun 2021 20:16:56 +0000 (13:16 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Jun 2021 03:57:45 +0000 (20:57 -0700)
This fixes a typo which was causing this function to check equality incorrectly.
Unfortunately this seems to have no effect on any open ortho-related bugs.
Closes #2047.

CHANGELOG.md
lib/ortho/ortho.c

index 93be74679e377b7dcd085720f5085ebe75d1dcc2..31ae52447b4cd638cc553b24d788c9cfe9d880ce 100644 (file)
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - updated Graphviz bug report URL in the Autotools build system
 - Fix `WIN32` path of `gvc.def` specified in `libgvc_la_LDFLAGS`
 
+### Fixed
+
+- ortho's eqEndSeg incorrectly modifies its arguments #2047
+
 ## [2.47.3] - 2021-06-19
 
 ### Changed
index dff7eebe3f8d722b7ec0faf1273a1e9363758bc2..eb3523bfd1cec7d690942ec165c2fb727e30d94a 100644 (file)
@@ -607,7 +607,7 @@ create_graphs(Dt_t* chans)
 static int
 eqEndSeg (bend S1l2, bend S2l2, bend T1, bend T2)
 {
-    if (((S1l2==T2)&&(S2l2=!T2))
+    if (((S1l2==T2)&&(S2l2!=T2))
      || ((S1l2==B_NODE)&&(S2l2==T1)))
        return(0);
     else