]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram/src/org/simantics/diagram/connection/ConnectionVisuals.java
Change G2D.Color specification to RGBA (was BGRA)
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / connection / ConnectionVisuals.java
index 802881e1610efa52d787e0670edddb4c291e45de..d89c07c4f3a82034fa5700e819dc8a299f3c2224 100644 (file)
@@ -46,8 +46,8 @@ public class ConnectionVisuals {
         if (color == null)
             return null;
         if (color.length == 3)
-            return new Color(color[2], color[1], color[0]);
-        return new Color(color[2], color[1], color[0], color[3]);
+            return new Color(color[0], color[1], color[2]);
+        return new Color(color[0], color[1], color[2], color[3]);
     }
 
     @Override