]> gerrit.simantics Code Review - simantics/platform.git/commit
Don't create degenerated transient RouteLines to RouteGraph 85/3985/2
authorJussi Koskela <jussi.koskela@semantum.fi>
Wed, 11 Mar 2020 13:35:51 +0000 (15:35 +0200)
committerJussi Koskela <jussi.koskela@semantum.fi>
Wed, 11 Mar 2020 13:37:51 +0000 (15:37 +0200)
commit1aedad590d55facc132e458a578064300bac833c
tree4f860916984c43e2b01c34479fd0117b8ee11f08
parent59504249e01a0d803c5c4fdd4ba581d8272fee18
Don't create degenerated transient RouteLines to RouteGraph

This change addresses the trivial cases. If multiple bends are required
we still get degenerated lines if the terminal is at the corner of the
bounds.

gitlab #495

Change-Id: Iac5d139ba805955c38d4b4e4906eda4795871a66
bundles/org.simantics.diagram.connection/src/org/simantics/diagram/connection/RouteGraph.java
bundles/org.simantics.diagram.connection/src/org/simantics/diagram/connection/RouteLine.java
bundles/org.simantics.diagram.connection/src/org/simantics/diagram/connection/RouteTerminal.java