Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r1341 - trunk/src/org/tigris/gef/presentation/FigEdgePoly.java

gef
Discussion topic

Back to topic list

svn commit: r1341 - trunk/src/org/tigris/gef/presentation/FigEdgePoly.java

Author bobtarling
Full name Bob Tarling
Date 2012-05-18 00:08:43 PDT
Message Author: bobtarling
Date: 2012-05-18 00:08:32-0700
New Revision: 1341

Modified:
   trunk/src/org/tigris​/gef/presentation/Fi​gEdgePoly.java

Log:
Protect against possibility of edge with no points as reported in argo issue 6433

Modified: trunk/src/org/tigris​/gef/presentation/Fi​gEdgePoly.java
Url: http://gef.tigris.or​g/source/browse/gef/​trunk/src/org/tigris​/gef/presentation/Fi​gEdgePoly.java?view=​diff&pathrev=134​1&r1=1340&r2​=1341
====================​====================​====================​==================
--- trunk/src/org/tigris​/gef/presentation/Fi​gEdgePoly.java (original)
+++ trunk/src/org/tigris​/gef/presentation/Fi​gEdgePoly.java 2012-05-18 00:08:32-0700
@@ -117,7 +117,7 @@
                         .getPoint(p.getNumPoints() - 2));
                 srcPt = sourcePortFig.connec​tionPoint(dstPt);
                 dstPt = destPortFig.connecti​onPoint(srcPt);
- } else {
+ } else if (p.getNumPoints() > 2) {
                 srcPt = sourcePortFig.connec​tionPoint(p.getPoint​(1));
                 dstPt = destPortFig.connectionPoint(p
                         .getPoint(p.getNumPoints() - 2));

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r1341 - trunk/src/org/tigris/gef/presentation/FigEdgePoly.java bobtarling Bob Tarling 2012-05-18 00:08:43 PDT
Messages per page: