Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r1342 - trunk/src/org/tigris/gef/base/ModeCreateEdgeAndNode.java

gef
Discussion topic

Back to topic list

svn commit: r1342 - trunk/src/org/tigris/gef/base/ModeCreateEdgeAndNode.java

Author mvw
Full name Michiel van der Wulp
Date 2013-07-28 02:14:06 PDT
Message Author: mvw
Date: 2013-07-28 02:14:06-0700
New Revision: 1342

Modified:
   trunk/src/org/tigris​/gef/base/ModeCreate​EdgeAndNode.java

Log:
Fix for issue 363 = ArgoUML issue 6441: the rubberbanding color should only be used for the rubber band, not in the final Fig.

Modified: trunk/src/org/tigris​/gef/base/ModeCreate​EdgeAndNode.java
Url: http://gef.tigris.or​g/source/browse/gef/​trunk/src/org/tigris​/gef/base/ModeCreate​EdgeAndNode.java?vie​w=diff&pathrev=1​342&r1=1341&​r2=1342
====================​====================​====================​==================
--- trunk/src/org/tigris​/gef/base/ModeCreate​EdgeAndNode.java (original)
+++ trunk/src/org/tigris​/gef/base/ModeCreate​EdgeAndNode.java 2013-07-28 02:14:06-0700
@@ -24,6 +24,7 @@
 
 package org.tigris.gef.base;
 
+import java.awt.Color;
 import java.awt.Cursor;
 import java.awt.Point;
 import java.awt.Rectangle;
@@ -381,7 +382,9 @@
 
                     LayerManager lm = ce.getLayerManager();
                     fe = (FigEdge) lm.getActiveLayer().​presentationFor(newE​dge);
+ Color c = fe.getLineColor(); //get the original color - issue argouml 6441
                     fe.setFig(_newItem);
+ fe.setLineColor(c); // overwrite the rubberbanding color
                     fe.setSourcePortFig(​startPortFig);
                     fe.setSourceFigNode(​sourceFigNode);
                     fe.setDestPortFig(destPortFig);

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

Messages

Show all messages in topic

svn commit: r1342 - trunk/src/org/tigris/gef/base/ModeCreateEdgeAndNode.java mvw Michiel van der Wulp 2013-07-28 02:14:06 PDT
Messages per page: