]> gerrit.simantics Code Review - simantics/platform.git/commit
Don't create degenerated transient RouteLines to RouteGraph 80/4480/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Wed, 11 Mar 2020 13:35:51 +0000 (15:35 +0200)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Mon, 28 Sep 2020 06:33:18 +0000 (06:33 +0000)
commit22f8bbf03fa1abfd7e3ddd07e872ba237cb81cfb
tree9994812fee866ef74c95aed1a06b5b14b057e4dc
parent098266910c358707fa51328383a3ae1a80896a39
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
(cherry picked from commit 1aedad590d55facc132e458a578064300bac833c)
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