Author: dazarov
Date: 2007-08-01 08:05:55 -0400 (Wed, 01 Aug 2007)
New Revision: 2802
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/figures/RoundPolylineConnection.java
Log:
http://jira.jboss.com/jira/browse/EXIN-365
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/figures/RoundPolylineConnection.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/figures/RoundPolylineConnection.java 2007-08-01
11:53:06 UTC (rev 2801)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/figures/RoundPolylineConnection.java 2007-08-01
12:05:55 UTC (rev 2802)
@@ -36,10 +36,15 @@
if(points.size() == 4){
Point point1 = points.getPoint(0);
Point point2 = points.getPoint(1);
- point2.x -= delta/2;
Point point3 = points.getPoint(2);
- point3.x += delta/2;
Point point4 = points.getPoint(3);
+ if(point1.x < point4.x){
+ point2.x -= delta/2;
+ point3.x += delta/2;
+ }else{
+ point2.x += delta/2;
+ point3.x -= delta/2;
+ }
g.drawLine(point1, point2);
g.drawLine(point2, point3);
g.drawLine(point3, point4);